Disable “ignore hidden files” checkbox and “re-scan” button during scanning.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 28 Aug 2012 12:19:58 +0000 (14:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 28 Aug 2012 12:19:58 +0000 (14:19 +0200)
src/main/java/de/todesbaum/jsite/gui/ProjectFilesPage.java

index 9321d6e..002e0ad 100644 (file)
@@ -415,6 +415,9 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
                wizard.setPreviousEnabled(false);
                wizard.setQuitEnabled(false);
 
+               ignoreHiddenFilesCheckBox.setEnabled(false);
+               scanAction.setEnabled(false);
+
                delayedNotification = new DelayedNotification(scanningFilesDialog, 2000);
                new Thread(fileScanner).start();
                new Thread(delayedNotification).start();
@@ -484,6 +487,8 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
                                wizard.setPreviousEnabled(true);
                                wizard.setNextEnabled(!error);
                                wizard.setQuitEnabled(true);
+                               ignoreHiddenFilesCheckBox.setEnabled(true);
+                               scanAction.setEnabled(true);
                        }
                });
        }