aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2023-11-16 16:38:52 -0800
committerj-berman <justinberman@protonmail.com>2025-08-03 10:26:11 -0700
commit5332495c2404ab4b102c98c22419e70143b1dc90 (patch)
tree71c5a543eed50a0c244594afe3fb9028b5650dd4 /components
parent10a184db8b242d4cff97e0f5845342cfccfc2042 (diff)
downloadmonzero-gui-5332495c2404ab4b102c98c22419e70143b1dc90.tar.gz
monzero-gui-5332495c2404ab4b102c98c22419e70143b1dc90.tar.xz
monzero-gui-5332495c2404ab4b102c98c22419e70143b1dc90.zip
Implement background sync when locked
Diffstat (limited to 'components')
-rw-r--r--components/PasswordDialog.qml18
1 files changed, 17 insertions, 1 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml
index 4de44ae5..77b16658 100644
--- a/components/PasswordDialog.qml
+++ b/components/PasswordDialog.qml
@@ -50,6 +50,7 @@ Item {
property bool passwordDialogMode
property bool passphraseDialogMode
property bool newPasswordDialogMode
+ property bool backgroundSyncing
// same signals as Dialog has
signal accepted()
@@ -77,10 +78,11 @@ Item {
appWindow.updateBalance();
}
- function open(walletName, errorText, okButtonText, okButtonIcon) {
+ function open(walletName, errorText, okButtonText, okButtonIcon, backgroundSyncOn) {
passwordDialogMode = true;
passphraseDialogMode = false;
newPasswordDialogMode = false;
+ backgroundSyncing = backgroundSyncOn || false;
root.okButtonText = okButtonText;
root.okButtonIcon = okButtonIcon ? okButtonIcon : "";
_openInit(walletName, errorText);
@@ -90,6 +92,7 @@ Item {
passwordDialogMode = false;
passphraseDialogMode = true;
newPasswordDialogMode = false;
+ backgroundSyncing = false;
_openInit("", "");
}
@@ -97,6 +100,7 @@ Item {
passwordDialogMode = false;
passphraseDialogMode = false;
newPasswordDialogMode = true;
+ backgroundSyncing = false;
_openInit("", "");
}
@@ -300,6 +304,18 @@ Item {
onClicked: onOk()
}
}
+
+ Label {
+ visible: backgroundSyncing
+ text: qsTr("Syncing in the background...") + translationManager.emptyString;
+ Layout.fillWidth: true
+
+ font.pixelSize: 14
+ font.family: MoneroComponents.Style.fontLight.name
+ font.italic: true
+
+ color: MoneroComponents.Style.defaultFontColor
+ }
}
}
}