- Disabled Start if there is no selected directory
This commit is contained in:
parent
290d66c9ca
commit
3704f22114
1 changed files with 4 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ public class MainForm {
|
||||||
extractFiles();
|
extractFiles();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (!alreadyRunning) {
|
if ((!alreadyRunning) & (dirs!=null)) {
|
||||||
noBlock.start();
|
noBlock.start();
|
||||||
alreadyRunning = true;
|
alreadyRunning = true;
|
||||||
}
|
}
|
||||||
|
|
@ -142,6 +142,7 @@ public class MainForm {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void extractFiles() {
|
private void extractFiles() {
|
||||||
|
|
||||||
for(File dir:dirs) {
|
for(File dir:dirs) {
|
||||||
try {
|
try {
|
||||||
String parentDir = dir.getCanonicalFile().getParent();
|
String parentDir = dir.getCanonicalFile().getParent();
|
||||||
|
|
@ -159,6 +160,7 @@ public class MainForm {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lblDone.setText("Done");
|
lblDone.setText("Done");
|
||||||
|
alreadyRunning = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resetElements() {
|
private void resetElements() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue