mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
CM - fix NPE related to restart button
This commit is contained in:
@@ -46,11 +46,11 @@ public class ContributionTab extends JPanel {
|
||||
|
||||
Contribution.Filter filter;
|
||||
JComboBox<String> categoryChooser;
|
||||
JScrollPane scrollPane;
|
||||
ListPanel contributionListPanel;
|
||||
StatusPanel statusPanel;
|
||||
FilterField filterField;
|
||||
JButton restartButton;
|
||||
// TODO: remove or initialize restartButton
|
||||
//JButton restartButton;
|
||||
JLabel categoryLabel;
|
||||
JLabel loaderLabel;
|
||||
|
||||
@@ -200,6 +200,9 @@ public class ContributionTab extends JPanel {
|
||||
});
|
||||
|
||||
filterField = new FilterField();
|
||||
|
||||
// TODO: initialize restartButton, whatever it is
|
||||
// restartButton = ???
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -164,7 +164,8 @@ class DetailPanel extends JPanel {
|
||||
}
|
||||
}
|
||||
}
|
||||
listPanel.contributionTab.restartButton.setVisible(toBeRestarted);
|
||||
// TODO: remove or uncomment if the button was added
|
||||
//listPanel.contributionTab.restartButton.setVisible(toBeRestarted);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -864,7 +865,8 @@ class DetailPanel extends JPanel {
|
||||
if (isModeActive) {
|
||||
updateButton.setEnabled(true);
|
||||
} else {
|
||||
listPanel.contributionTab.restartButton.setVisible(true);
|
||||
// TODO: remove or uncomment if the button was added
|
||||
//listPanel.contributionTab.restartButton.setVisible(true);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -930,7 +932,8 @@ class DetailPanel extends JPanel {
|
||||
if (isModeActive) {
|
||||
updateButton.setEnabled(true);
|
||||
} else {
|
||||
contributionTab.restartButton.setVisible(true);
|
||||
// TODO: remove or uncomment if the button was added
|
||||
//contributionTab.restartButton.setVisible(true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user