diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-12-12 18:24:39 +0100 |
|---|---|---|
| committer | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-12-12 18:26:44 +0100 |
| commit | d160828cdaf4b852dc325b95d24cc71812116fe2 (patch) | |
| tree | 27d75c24ffde6b4d0e3752a54bc327b15184ae4b /components | |
| parent | bddb9b0050ee086da5c7ee7fdb3627e0dff9f179 (diff) | |
| download | monzero-gui-d160828cdaf4b852dc325b95d24cc71812116fe2.tar.gz monzero-gui-d160828cdaf4b852dc325b95d24cc71812116fe2.tar.xz monzero-gui-d160828cdaf4b852dc325b95d24cc71812116fe2.zip | |
SettingsWallet, SettingsListItem: disable "Rescan wallet balance" buton if wallet is not synced
Diffstat (limited to 'components')
| -rw-r--r-- | components/SettingsListItem.qml | 3 |
1 files changed, 3 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 |
