diff options
| author | j-berman <justinberman@protonmail.com> | 2023-11-16 16:38:52 -0800 |
|---|---|---|
| committer | j-berman <justinberman@protonmail.com> | 2025-08-03 10:26:11 -0700 |
| commit | 5332495c2404ab4b102c98c22419e70143b1dc90 (patch) | |
| tree | 71c5a543eed50a0c244594afe3fb9028b5650dd4 /components | |
| parent | 10a184db8b242d4cff97e0f5845342cfccfc2042 (diff) | |
| download | monzero-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.qml | 18 |
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 + } } } } |
