mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Label below install is visible now
This commit is contained in:
@@ -111,8 +111,8 @@ class ContributionPanel extends JPanel {
|
||||
private ActionListener undoActionListener;
|
||||
|
||||
boolean isUpdateInProgress;
|
||||
private boolean isInstallInProgress;
|
||||
private boolean isRemoveInProgress;
|
||||
boolean isInstallInProgress;
|
||||
boolean isRemoveInProgress;
|
||||
|
||||
StringBuilder description;
|
||||
|
||||
|
||||
@@ -185,6 +185,7 @@ class StatusPanel extends JPanel {
|
||||
installButton.setEnabled(false);
|
||||
updateButton.setEnabled(false);
|
||||
removeButton.setEnabled(false);
|
||||
updateLabel.setVisible(true);
|
||||
|
||||
layout.setHonorsVisibility(updateLabel, false); // Makes the label take up space even though not visible
|
||||
|
||||
@@ -266,7 +267,9 @@ class StatusPanel extends JPanel {
|
||||
|
||||
removeButton.setEnabled(panel.getContrib().isInstalled());
|
||||
progressBarPanel.add(panel.installProgressBar);
|
||||
if (panel.installProgressBar.isEnabled()) {
|
||||
progressBarPanel.setVisible(false);
|
||||
updateLabel.setVisible(true);
|
||||
if (panel.isUpdateInProgress || panel.isInstallInProgress || panel.isRemoveInProgress) {
|
||||
progressBarPanel.setVisible(true);
|
||||
updateLabel.setVisible(false);
|
||||
progressBarPanel.repaint();
|
||||
|
||||
Reference in New Issue
Block a user