File tree 3 files changed +13
-6
lines changed
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
3
- Copyright " 2022" Dmitry Isaenko
3
+ Copyright 2022-2023 Dmitry Isaenko
4
4
5
5
This file is part of Tihwin.
6
6
@@ -36,5 +36,10 @@ public static void notifyAllConvertsEnded(){
36
36
INSTANCE .mainAppUi .notifySplitFinished ();
37
37
}
38
38
39
- public static void setDiskImage (File file ){INSTANCE .mainAppUi .setDiskImageFile (file );}
39
+ public static void setDiskImage (File file ){
40
+ INSTANCE .mainAppUi .setDiskImageFile (file );
41
+ }
42
+ public static void setDestination (File folder ){
43
+ INSTANCE .mainAppUi .setDestinationDir (folder );
44
+ }
40
45
}
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright 2022 Dmitry Isaenko
2
+ Copyright 2022-2023 Dmitry Isaenko
3
3
4
4
This file is part of Tihwin.
5
5
@@ -152,7 +152,7 @@ private void destinationSelectEventHandler() {
152
152
setDestinationDir (fileChooser .getSelectedFile ());
153
153
}
154
154
155
- private void setDestinationDir (File folder ) {
155
+ public void setDestinationDir (File folder ) {
156
156
destinationDirectoryLbl .setText (folder .getAbsolutePath ());
157
157
}
158
158
Original file line number Diff line number Diff line change @@ -46,8 +46,10 @@ public void drop(DropTargetDropEvent event) {
46
46
List <File > files = (List <File >) transferable .getTransferData (DataFlavor .javaFileListFlavor );
47
47
48
48
for (File file : files ) {
49
- if (file .isDirectory ())
50
- continue ;
49
+ if (file .isDirectory ()){
50
+ AwesomeMediator .setDestination (file );
51
+ break ;
52
+ }
51
53
// Pick up first ISO file found and drop iteration
52
54
if (file .getName ().toLowerCase ().endsWith (".iso" )) {
53
55
AwesomeMediator .setDiskImage (file );
You can’t perform that action at this time.
0 commit comments