diff --git a/LeftPanel.qml b/LeftPanel.qml index e8e06805..e8052e6b 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 } @@ -220,7 +219,7 @@ Rectangle { hoverEnabled: true cursorShape: Qt.PointingHandCursor onClicked: { - fiatBalance = !fiatBalance + persistentSettings.fiatPriceToggle = !persistentSettings.fiatPriceToggle } } } @@ -236,7 +235,7 @@ Rectangle { width: 50 MoneroComponents.TextPlain { - visible: !(fiatBalance && persistentSettings.fiatPriceEnabled) + visible: !(persistentSettings.fiatPriceToggle && persistentSettings.fiatPriceEnabled) id: balanceText themeTransition: false anchors.left: parent.left @@ -309,7 +308,7 @@ Rectangle { MoneroComponents.TextPlain { id: unlockedBalanceText - visible: !(fiatBalance && persistentSettings.fiatPriceEnabled) + visible: !(persistentSettings.fiatPriceToggle && persistentSettings.fiatPriceEnabled) themeTransition: false anchors.left: parent.left anchors.leftMargin: 20 diff --git a/main.qml b/main.qml index 9ff1f1a0..769157d7 100644 --- a/main.qml +++ b/main.qml @@ -1393,6 +1393,7 @@ ApplicationWindow { property bool blackTheme: true property bool fiatPriceEnabled: false + property bool fiatPriceToggle: false property string fiatPriceProvider: "kraken" property string fiatPriceCurrency: "xmrusd"