Skip to content

Commit

Permalink
[#27] Fixed cancel button
Browse files Browse the repository at this point in the history
  • Loading branch information
vatbub committed Nov 5, 2016
1 parent c927aac commit cb9508d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/view/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,7 @@ void appListOnMouseClicked(MouseEvent event) {
@FXML
void appListOnDragDetected(MouseEvent event) {
if (currentlySelectedApp != null) {
File tempFile = new File(
Common.getAndCreateAppDataPath() + currentlySelectedApp.getName() + ".lnk");
File tempFile = new File(Common.getAndCreateAppDataPath() + currentlySelectedApp.getName() + ".lnk");
try {
currentlySelectedApp.createShortCut(tempFile, bundle.getString("shortcutQuickInfo"));
Dragboard db = appList.startDragAndDrop(TransferMode.MOVE);
Expand All @@ -615,10 +614,10 @@ void appListOnDragDetected(MouseEvent event) {
}
}
}
//Handler for ProgressButton[id="launchButton"] onDragDetected

// Handler for ProgressButton[id="launchButton"] onDragDetected
@FXML
void launchButtonOnDragDetected(MouseEvent event){
void launchButtonOnDragDetected(MouseEvent event) {
appListOnDragDetected(event);
}

Expand Down Expand Up @@ -941,6 +940,7 @@ public void changed(ObservableValue<? extends App> observable, App oldValue, App
// auto launch app if one was specified
if (appForAutoLaunch != null) {
MainWindow gui = this;
currentlySelectedApp = appForAutoLaunch;

// Launch the download
downloadAndLaunchThread = new Thread() {
Expand Down

0 comments on commit cb9508d

Please sign in to comment.