mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
set default core wallet name if offline mode is initially selected
This commit is contained in:
parent
1ad6da86b1
commit
717bc9fec2
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ import com.sparrowwallet.sparrow.io.Config;
|
||||||
import com.sparrowwallet.sparrow.io.FileType;
|
import com.sparrowwallet.sparrow.io.FileType;
|
||||||
import com.sparrowwallet.sparrow.io.IOUtils;
|
import com.sparrowwallet.sparrow.io.IOUtils;
|
||||||
import com.sparrowwallet.sparrow.io.Storage;
|
import com.sparrowwallet.sparrow.io.Storage;
|
||||||
|
import com.sparrowwallet.sparrow.net.Bwt;
|
||||||
import com.sparrowwallet.sparrow.net.ServerType;
|
import com.sparrowwallet.sparrow.net.ServerType;
|
||||||
import com.sparrowwallet.sparrow.preferences.PreferenceGroup;
|
import com.sparrowwallet.sparrow.preferences.PreferenceGroup;
|
||||||
import com.sparrowwallet.sparrow.preferences.PreferencesDialog;
|
import com.sparrowwallet.sparrow.preferences.PreferencesDialog;
|
||||||
|
@ -55,6 +56,7 @@ public class MainApp extends Application {
|
||||||
if(optionalMode.isPresent()) {
|
if(optionalMode.isPresent()) {
|
||||||
mode = optionalMode.get();
|
mode = optionalMode.get();
|
||||||
Config.get().setMode(mode);
|
Config.get().setMode(mode);
|
||||||
|
Config.get().setCoreWallet(Bwt.DEFAULT_CORE_WALLET);
|
||||||
|
|
||||||
if(mode.equals(Mode.ONLINE)) {
|
if(mode.equals(Mode.ONLINE)) {
|
||||||
PreferencesDialog preferencesDialog = new PreferencesDialog(PreferenceGroup.SERVER, true);
|
PreferencesDialog preferencesDialog = new PreferencesDialog(PreferenceGroup.SERVER, true);
|
||||||
|
|
Loading…
Reference in a new issue