mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-08 20:09:48 +00:00
persistentSettings: preserve fiat balance toggle on wallet restart
This commit is contained in:
parent
68c7cf7276
commit
68c55270d4
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
1
main.qml
1
main.qml
|
@ -1384,6 +1384,7 @@ ApplicationWindow {
|
|||
property bool blackTheme: true
|
||||
|
||||
property bool fiatPriceEnabled: false
|
||||
property bool fiatPriceToggle: false
|
||||
property string fiatPriceProvider: "kraken"
|
||||
property string fiatPriceCurrency: "xmrusd"
|
||||
|
||||
|
|
Loading…
Reference in a new issue