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,11 +587,13 @@ public class AppController implements Initializable {
);
AppServices.moveToActiveWindowScreen(window, 800, 450);
File file = fileChooser.showOpenDialog(window);
if (file != null) {
List<File> files = fileChooser.showOpenMultipleDialog(window);
if(files != null) {
for(File file : files) {
openTransactionFile(file);
}
}
}
private void openTransactionFile(File file) {
for(Tab tab : tabs.getTabs()) {
@ -1036,11 +1038,13 @@ public class AppController implements Initializable {
fileChooser.setInitialDirectory(Storage.getWalletsDir());
AppServices.moveToActiveWindowScreen(window, 800, 450);
File file = fileChooser.showOpenDialog(window);
if(file != null) {
List<File> files = fileChooser.showOpenMultipleDialog(window);
if(files != null) {
for(File file : files) {
openWalletFile(file, forceSameWindow);
}
}
}
public void openWalletFile(File file, boolean forceSameWindow) {
try {