mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36: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.install();
|
||||
|
||||
if(args.terminal) {
|
||||
if(args.terminal || java.awt.GraphicsEnvironment.isHeadless()) {
|
||||
PlatformImpl.setTaskbarApplication(false);
|
||||
com.sun.javafx.application.LauncherImpl.launchApplication(SparrowTerminal.class, SparrowWalletPreloader.class, argv);
|
||||
} else {
|
||||
|
|
|
@ -150,7 +150,9 @@ public class LoadWallet implements Runnable {
|
|||
|
||||
Set<File> walletFiles = new LinkedHashSet<>();
|
||||
walletFiles.add(storage.getWalletFile());
|
||||
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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue