diff options
| author | xiphon <xiphon@protonmail.com> | 2019-06-17 20:51:18 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-06-17 20:51:18 +0000 |
| commit | 68c55270d4b5c717ef546bc97f46155b282f7eb4 (patch) | |
| tree | 70c23dbffd448dffd2f8ca800b4478a1d8c1d673 /LeftPanel.qml | |
| parent | 68c7cf7276b8192ef800e3ab8fcc51815fb9c1cc (diff) | |
| download | monzero-gui-68c55270d4b5c717ef546bc97f46155b282f7eb4.tar.gz monzero-gui-68c55270d4b5c717ef546bc97f46155b282f7eb4.tar.xz monzero-gui-68c55270d4b5c717ef546bc97f46155b282f7eb4.zip | |
persistentSettings: preserve fiat balance toggle on wallet restart
Diffstat (limited to 'LeftPanel.qml')
| -rw-r--r-- | LeftPanel.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/LeftPanel.qml b/LeftPanel.qml index 82d5b76d..d671c3df 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -51,7 +51,6 @@ Rectangle { property alias progressBar : progressBar property alias daemonProgressBar : daemonProgressBar property alias minutesToUnlockTxt: unlockedBalanceLabel.text - property bool fiatBalance: false property int titleBarHeight: 50 property string copyValue: "" Clipboard { id: clipboard } @@ -222,7 +221,7 @@ Rectangle { hoverEnabled: true cursorShape: Qt.PointingHandCursor onClicked: { - fiatBalance = !fiatBalance + persistentSettings.fiatPriceToggle = !persistentSettings.fiatPriceToggle } } } @@ -238,7 +237,7 @@ Rectangle { width: 50 MoneroComponents.TextPlain { - visible: !(fiatBalance && persistentSettings.fiatPriceEnabled) + visible: !(persistentSettings.fiatPriceToggle && persistentSettings.fiatPriceEnabled) id: balanceText themeTransition: false anchors.left: parent.left @@ -311,7 +310,7 @@ Rectangle { MoneroComponents.TextPlain { id: unlockedBalanceText - visible: !(fiatBalance && persistentSettings.fiatPriceEnabled) + visible: !(persistentSettings.fiatPriceToggle && persistentSettings.fiatPriceEnabled) themeTransition: false anchors.left: parent.left anchors.leftMargin: 20 |
