diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-01-01 12:51:03 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-01-01 12:51:03 -0500 |
| commit | 9476a9880cc32b8184312e6ff2a1d4e75bfedd67 (patch) | |
| tree | 7d885de9abb2a36f94cd02771a5a9ac5e1edbcd8 | |
| parent | 487f2ceecb8aef49d814206667906adac814088f (diff) | |
| parent | d160828cdaf4b852dc325b95d24cc71812116fe2 (diff) | |
| download | monzero-gui-9476a9880cc32b8184312e6ff2a1d4e75bfedd67.tar.gz monzero-gui-9476a9880cc32b8184312e6ff2a1d4e75bfedd67.tar.xz monzero-gui-9476a9880cc32b8184312e6ff2a1d4e75bfedd67.zip | |
Merge pull request #3798
d160828 SettingsWallet, SettingsListItem: disable 'Rescan wallet balance' buton if wallet is not synced (rating89us)
| -rw-r--r-- | components/SettingsListItem.qml | 3 | ||||
| -rw-r--r-- | pages/settings/SettingsWallet.qml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/components/SettingsListItem.qml b/components/SettingsListItem.qml index bbf42a88..d6a10ca6 100644 --- a/components/SettingsListItem.qml +++ b/components/SettingsListItem.qml @@ -10,6 +10,7 @@ ColumnLayout { property alias description: area.text property alias title: header.text property bool isLast: false + property bool enabled: true signal clicked() Layout.fillWidth: true @@ -37,6 +38,7 @@ ColumnLayout { width: parent.width height: header.height + area.contentHeight color: "transparent"; + opacity: settingsListItem.enabled ? 1 : 0.25 anchors.left: parent.left anchors.bottomMargin: 4 anchors.topMargin: 4 @@ -102,6 +104,7 @@ ColumnLayout { } MouseArea { + visible: settingsListItem.enabled cursorShape: Qt.PointingHandCursor anchors.fill: parent hoverEnabled: true diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml index 3e6a25ac..bf46abc1 100644 --- a/pages/settings/SettingsWallet.qml +++ b/pages/settings/SettingsWallet.qml @@ -91,6 +91,7 @@ Rectangle { } MoneroComponents.SettingsListItem { + enabled: leftPanel.progressBar.fillLevel == 100 iconText: FontAwesome.repeat description: qsTr("Use this feature if you think the shown balance is not accurate.") + translationManager.emptyString title: qsTr("Rescan wallet balance") + translationManager.emptyString |
