Merge pull request #3957

d514845 DaemonManagerDialog: close dialog when GUI is connected (selsta)
This commit is contained in:
luigi1111 2022-07-08 13:55:24 -04:00
commit 160eb8e074
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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;