mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
minor fixes
This commit is contained in:
parent
78afc5e4d5
commit
f2f6e639dc
2 changed files with 4 additions and 2 deletions
|
@ -86,7 +86,7 @@ public class SparrowWallet {
|
||||||
SLF4JBridgeHandler.removeHandlersForRootLogger();
|
SLF4JBridgeHandler.removeHandlersForRootLogger();
|
||||||
SLF4JBridgeHandler.install();
|
SLF4JBridgeHandler.install();
|
||||||
|
|
||||||
if(args.terminal) {
|
if(args.terminal || java.awt.GraphicsEnvironment.isHeadless()) {
|
||||||
PlatformImpl.setTaskbarApplication(false);
|
PlatformImpl.setTaskbarApplication(false);
|
||||||
com.sun.javafx.application.LauncherImpl.launchApplication(SparrowTerminal.class, SparrowWalletPreloader.class, argv);
|
com.sun.javafx.application.LauncherImpl.launchApplication(SparrowTerminal.class, SparrowWalletPreloader.class, argv);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -150,7 +150,9 @@ public class LoadWallet implements Runnable {
|
||||||
|
|
||||||
Set<File> walletFiles = new LinkedHashSet<>();
|
Set<File> walletFiles = new LinkedHashSet<>();
|
||||||
walletFiles.add(storage.getWalletFile());
|
walletFiles.add(storage.getWalletFile());
|
||||||
walletFiles.addAll(Config.get().getRecentWalletFiles().stream().limit(MAX_RECENT_WALLETS - 1).collect(Collectors.toList()));
|
if(Config.get().getRecentWalletFiles() != null) {
|
||||||
|
walletFiles.addAll(Config.get().getRecentWalletFiles().stream().limit(MAX_RECENT_WALLETS - 1).collect(Collectors.toList()));
|
||||||
|
}
|
||||||
Config.get().setRecentWalletFiles(Config.get().isLoadRecentWallets() ? new ArrayList<>(walletFiles) : Collections.emptyList());
|
Config.get().setRecentWalletFiles(Config.get().isLoadRecentWallets() ? new ArrayList<>(walletFiles) : Collections.emptyList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue