aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-14 16:15:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-14 16:15:31 -0500
commit3483b8dbec4d723262861ce91ca175647494c287 (patch)
treece1e2d78aeffa643e92584bda42c88b612eb695d /main.qml
parenteece475fb8daa572df03352fe3950a7d950fc1ce (diff)
parent034f83bfb3982bce8203fbda933248810f673868 (diff)
downloadmonzero-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.qml27
1 files changed, 2 insertions, 25 deletions
diff --git a/main.qml b/main.qml
index c41616df..07035d53 100644
--- a/main.qml
+++ b/main.qml
@@ -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 {