aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-06-28 23:38:06 +0200
committerselsta <selsta@sent.at>2022-06-28 23:38:06 +0200
commitd514845e4a14c5fbe76de5720a45589718adb4fc (patch)
tree35c683c2a0b1ccb2e13847c7538c3a92fcd6ac06 /components
parent96cca79b709dce3887f5dfac42abe111faaae01e (diff)
downloadmonzero-gui-d514845e4a14c5fbe76de5720a45589718adb4fc.tar.gz
monzero-gui-d514845e4a14c5fbe76de5720a45589718adb4fc.tar.xz
monzero-gui-d514845e4a14c5fbe76de5720a45589718adb4fc.zip
DaemonManagerDialog: close dialog when GUI is connected
Diffstat (limited to 'components')
-rw-r--r--components/DaemonManagerDialog.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/DaemonManagerDialog.qml b/components/DaemonManagerDialog.qml
index 455277bb..1d7dc0eb 100644
--- a/components/DaemonManagerDialog.qml
+++ b/components/DaemonManagerDialog.qml
@@ -32,6 +32,7 @@ import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
import QtQuick.Controls.Styles 1.4
import QtQuick.Window 2.0
+import moneroComponents.Wallet 1.0
import "../components" as MoneroComponents
@@ -79,6 +80,10 @@ Window {
running: false;
repeat: true
onTriggered: {
+ if (currentWallet.connected() == Wallet.ConnectionStatus_Connected) {
+ running = false;
+ root.close();
+ }
countDown--;
if(countDown < 0){
running = false;