From bb881d9aef71a7aac6d41f71f802206e86a2e864 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sat, 26 Nov 2016 11:31:27 +0100 Subject: [PATCH] show processingSplash when starting/stopping daemon --- main.qml | 9 +++++++++ pages/Settings.qml | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main.qml b/main.qml index f51ffded..e464fcb7 100644 --- a/main.qml +++ b/main.qml @@ -325,6 +325,15 @@ ApplicationWindow { onWalletUpdate(); } + function startDaemon(){ + appWindow.showProcessingSplash(qsTr("Waiting for daemon to start...")) + daemonManager.start(); + } + function stopDaemon(){ + appWindow.showProcessingSplash(qsTr("Waiting for daemon to stop...")) + daemonManager.stop(); + } + function onDaemonStarted(){ console.log("daemon started"); daemonRunning = true; diff --git a/pages/Settings.qml b/pages/Settings.qml index eba450d7..9b6e618c 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -290,7 +290,7 @@ Rectangle { releasedColor: "#FF6C3C" pressedColor: "#FF4304" onClicked: { - daemonManager.start(); + appWindow.startDaemon() } } @@ -305,7 +305,7 @@ Rectangle { releasedColor: "#FF6C3C" pressedColor: "#FF4304" onClicked: { - daemonManager.stop(); + appWindow.stopDaemon() } }