support opening multiple wallet and transaction files at once

This commit is contained in:
Craig Raw 2023-11-07 14:14:14 +02:00
parent 30408af719
commit 3fedd8eb43

View file

@ -587,9 +587,11 @@ public class AppController implements Initializable {
); );
AppServices.moveToActiveWindowScreen(window, 800, 450); AppServices.moveToActiveWindowScreen(window, 800, 450);
File file = fileChooser.showOpenDialog(window); List<File> files = fileChooser.showOpenMultipleDialog(window);
if (file != null) { if(files != null) {
openTransactionFile(file); for(File file : files) {
openTransactionFile(file);
}
} }
} }
@ -1036,9 +1038,11 @@ public class AppController implements Initializable {
fileChooser.setInitialDirectory(Storage.getWalletsDir()); fileChooser.setInitialDirectory(Storage.getWalletsDir());
AppServices.moveToActiveWindowScreen(window, 800, 450); AppServices.moveToActiveWindowScreen(window, 800, 450);
File file = fileChooser.showOpenDialog(window); List<File> files = fileChooser.showOpenMultipleDialog(window);
if(file != null) { if(files != null) {
openWalletFile(file, forceSameWindow); for(File file : files) {
openWalletFile(file, forceSameWindow);
}
} }
} }