minor moving around

This commit is contained in:
Ben Fry
2022-01-17 18:22:16 -05:00
parent a1f429f37e
commit bbc2e2ec2b
2 changed files with 18 additions and 13 deletions

View File

@@ -383,8 +383,7 @@ public class ContributionTab extends JPanel {
}
public void applyFilter() {
String filter = getText();
filter = filter.toLowerCase();
String filter = getText().toLowerCase();
// Replace anything but 0-9, a-z, or : with a space
filter = filter.replaceAll("[^\\x30-\\x39^\\x61-\\x7a\\x3a]", " ");

View File

@@ -186,6 +186,22 @@ class DetailPanel extends JPanel {
}
public void remove() {
clearStatusMessage();
if (contrib.isInstalled() && contrib instanceof LocalContribution) {
removeInProgress = true;
installProgressBar.setVisible(true);
installProgressBar.setIndeterminate(true);
ContribProgressBar monitor = new RemoveProgressBar(installProgressBar);
getLocalContrib().removeContribution(getBase(), monitor, getStatusPanel());
}
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
class UpdateProgressBar extends ContribProgressBar {
public UpdateProgressBar(JProgressBar progressBar) {
super(progressBar);
@@ -213,17 +229,7 @@ class DetailPanel extends JPanel {
}
public void remove() {
clearStatusMessage();
if (contrib.isInstalled() && contrib instanceof LocalContribution) {
removeInProgress = true;
installProgressBar.setVisible(true);
installProgressBar.setIndeterminate(true);
ContribProgressBar monitor = new RemoveProgressBar(installProgressBar);
getLocalContrib().removeContribution(getBase(), monitor, getStatusPanel());
}
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
class RemoveProgressBar extends ContribProgressBar {