mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
SettingsWallet, SettingsListItem: disable "Rescan wallet balance" buton if wallet is not synced
This commit is contained in:
parent
bddb9b0050
commit
d160828cda
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ ColumnLayout {
|
||||||
property alias description: area.text
|
property alias description: area.text
|
||||||
property alias title: header.text
|
property alias title: header.text
|
||||||
property bool isLast: false
|
property bool isLast: false
|
||||||
|
property bool enabled: true
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -37,6 +38,7 @@ ColumnLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: header.height + area.contentHeight
|
height: header.height + area.contentHeight
|
||||||
color: "transparent";
|
color: "transparent";
|
||||||
|
opacity: settingsListItem.enabled ? 1 : 0.25
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.bottomMargin: 4
|
anchors.bottomMargin: 4
|
||||||
anchors.topMargin: 4
|
anchors.topMargin: 4
|
||||||
|
@ -102,6 +104,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
visible: settingsListItem.enabled
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
|
@ -91,6 +91,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.SettingsListItem {
|
MoneroComponents.SettingsListItem {
|
||||||
|
enabled: leftPanel.progressBar.fillLevel == 100
|
||||||
iconText: FontAwesome.repeat
|
iconText: FontAwesome.repeat
|
||||||
description: qsTr("Use this feature if you think the shown balance is not accurate.") + translationManager.emptyString
|
description: qsTr("Use this feature if you think the shown balance is not accurate.") + translationManager.emptyString
|
||||||
title: qsTr("Rescan wallet balance") + translationManager.emptyString
|
title: qsTr("Rescan wallet balance") + translationManager.emptyString
|
||||||
|
|
Loading…
Reference in a new issue