Skip to content
Permalink
Browse files

Merge pull request #2416

582267a main: apply WalletMode check on start (xiphon)
  • Loading branch information...
luigi1111 committed Oct 16, 2019
2 parents fe3c06c + 582267a commit 290582d428fa2399b1c072219c606e2b4f82081c
Showing with 8 additions and 1 deletion.
  1. +8 −1 main.qml
@@ -1271,6 +1271,9 @@ ApplicationWindow {
Component.onCompleted: {
x = (Screen.width - width) / 2
y = (Screen.height - maxWindowHeight) / 2

applyWalletMode(persistentSettings.walletMode);

//
walletManager.walletOpened.connect(onWalletOpened);
walletManager.deviceButtonRequest.connect(onDeviceButtonRequest);
@@ -2054,6 +2057,10 @@ ApplicationWindow {
appWindow.disconnectedEpoch = 0;
appWindow.walletMode = mode;
persistentSettings.walletMode = mode;
applyWalletMode(mode);
}

function applyWalletMode(mode){
if (mode < 2) {
persistentSettings.useRemoteNode = false;
persistentSettings.bootstrapNodeAddress = "auto";
@@ -2062,7 +2069,7 @@ ApplicationWindow {
middlePanel.settingsView.settingsStateViewState = "Wallet"
}
}
console.log("walletMode changed: " + (mode === 0 ? "simple": mode === 1 ? "simple (bootstrap)" : "Advanced"));
console.log("walletMode: " + (mode === 0 ? "simple": mode === 1 ? "simple (bootstrap)" : "Advanced"));
}

// Daemon console

0 comments on commit 290582d

Please sign in to comment.
You can’t perform that action at this time.