diff options
| author | selsta <selsta@sent.at> | 2022-06-28 23:38:06 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2022-06-28 23:38:06 +0200 |
| commit | d514845e4a14c5fbe76de5720a45589718adb4fc (patch) | |
| tree | 35c683c2a0b1ccb2e13847c7538c3a92fcd6ac06 /components | |
| parent | 96cca79b709dce3887f5dfac42abe111faaae01e (diff) | |
| download | monzero-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.qml | 5 |
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; |
