From 717bc9fec2366a0a2206d6e0165c5cc95a04b24a Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 26 Jan 2021 18:28:07 +0200 Subject: [PATCH] set default core wallet name if offline mode is initially selected --- src/main/java/com/sparrowwallet/sparrow/MainApp.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/MainApp.java b/src/main/java/com/sparrowwallet/sparrow/MainApp.java index 60455fac..628fb0bf 100644 --- a/src/main/java/com/sparrowwallet/sparrow/MainApp.java +++ b/src/main/java/com/sparrowwallet/sparrow/MainApp.java @@ -9,6 +9,7 @@ import com.sparrowwallet.sparrow.io.Config; import com.sparrowwallet.sparrow.io.FileType; import com.sparrowwallet.sparrow.io.IOUtils; import com.sparrowwallet.sparrow.io.Storage; +import com.sparrowwallet.sparrow.net.Bwt; import com.sparrowwallet.sparrow.net.ServerType; import com.sparrowwallet.sparrow.preferences.PreferenceGroup; import com.sparrowwallet.sparrow.preferences.PreferencesDialog; @@ -55,6 +56,7 @@ public class MainApp extends Application { if(optionalMode.isPresent()) { mode = optionalMode.get(); Config.get().setMode(mode); + Config.get().setCoreWallet(Bwt.DEFAULT_CORE_WALLET); if(mode.equals(Mode.ONLINE)) { PreferencesDialog preferencesDialog = new PreferencesDialog(PreferenceGroup.SERVER, true);