diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-08-14 16:15:31 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-08-14 16:15:31 -0500 |
| commit | 3483b8dbec4d723262861ce91ca175647494c287 (patch) | |
| tree | ce1e2d78aeffa643e92584bda42c88b612eb695d /main.qml | |
| parent | eece475fb8daa572df03352fe3950a7d950fc1ce (diff) | |
| parent | 034f83bfb3982bce8203fbda933248810f673868 (diff) | |
| download | monzero-gui-3483b8dbec4d723262861ce91ca175647494c287.tar.gz monzero-gui-3483b8dbec4d723262861ce91ca175647494c287.tar.xz monzero-gui-3483b8dbec4d723262861ce91ca175647494c287.zip | |
Merge pull request #1511
Settings overhaul (27 commits by skftn)
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -40,6 +40,7 @@ import moneroComponents.NetworkType 1.0 import "components" import "wizard" +import "../js/Utils.js" as Utils import "js/Windows.js" as Windows ApplicationWindow { @@ -1414,31 +1415,7 @@ ApplicationWindow { updateBalance(); } - onKeysClicked: { - passwordDialog.onAcceptedCallback = function() { - if(walletPassword === passwordDialog.password){ - if(currentWallet.seedLanguage == "") { - console.log("No seed language set. Using English as default"); - currentWallet.setSeedLanguage("English"); - } - // Load keys page - middlePanel.state = "Keys" - } else { - informationPopup.title = qsTr("Error") + translationManager.emptyString; - informationPopup.text = qsTr("Wrong password"); - informationPopup.open() - informationPopup.onCloseCallback = function() { - passwordDialog.open() - } - } - } - passwordDialog.onRejectedCallback = function() { - appWindow.showPageRequest("Settings"); - } - passwordDialog.open(); - if(isMobile) hideMenu(); - updateBalance(); - } + onKeysClicked: Utils.showSeedPage(); } RightPanel { |
