Skip to content

Commit

Permalink
[#27] Fixed appList not beeing disabled when downloading and launched
Browse files Browse the repository at this point in the history
from shortcut
  • Loading branch information
vatbub committed Nov 5, 2016
1 parent 6218ffb commit 97ea155
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/view/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,14 @@ public void run() {
@Override
public void run() {
appList.setItems(filteredData);
appList.setDisable(false);
appList.setPlaceholder(new Label(bundle.getString("emptyAppList")));

// Only enable if no download is running
if (downloadAndLaunchThread == null) {
appList.setDisable(false);
} else if (!downloadAndLaunchThread.isAlive()) {
appList.setDisable(false);
}
}

});
Expand Down

0 comments on commit 97ea155

Please sign in to comment.