forked from Public/monero-gui
SettingsLayout: 'Display wallet name in title bar' option
This commit is contained in:
8
main.qml
8
main.qml
@@ -53,7 +53,10 @@ import "version.js" as Version
|
|||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
id: appWindow
|
id: appWindow
|
||||||
title: "Monero" + (walletName ? " - " + walletName : "")
|
title: "Monero" +
|
||||||
|
(persistentSettings.displayWalletNameInTitleBar && walletName
|
||||||
|
? " - " + walletName
|
||||||
|
: "")
|
||||||
minimumWidth: 750
|
minimumWidth: 750
|
||||||
minimumHeight: 450
|
minimumHeight: 450
|
||||||
|
|
||||||
@@ -1394,6 +1397,7 @@ ApplicationWindow {
|
|||||||
property bool keyReuseMitigation2: true
|
property bool keyReuseMitigation2: true
|
||||||
property int segregationHeight: 0
|
property int segregationHeight: 0
|
||||||
property int kdfRounds: 1
|
property int kdfRounds: 1
|
||||||
|
property bool displayWalletNameInTitleBar: true
|
||||||
property bool hideBalance: false
|
property bool hideBalance: false
|
||||||
property bool askPasswordBeforeSending: true
|
property bool askPasswordBeforeSending: true
|
||||||
property bool lockOnUserInActivity: true
|
property bool lockOnUserInActivity: true
|
||||||
@@ -1811,7 +1815,7 @@ ApplicationWindow {
|
|||||||
TitleBar {
|
TitleBar {
|
||||||
id: titleBar
|
id: titleBar
|
||||||
visible: persistentSettings.customDecorations && middlePanel.state !== "Merchant"
|
visible: persistentSettings.customDecorations && middlePanel.state !== "Merchant"
|
||||||
walletName: appWindow.walletName
|
walletName: persistentSettings.displayWalletNameInTitleBar ? appWindow.walletName : ""
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
onCloseClicked: appWindow.close();
|
onCloseClicked: appWindow.close();
|
||||||
|
|||||||
@@ -66,6 +66,12 @@ Rectangle {
|
|||||||
text: qsTr("Check for updates periodically") + translationManager.emptyString
|
text: qsTr("Check for updates periodically") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoneroComponents.CheckBox {
|
||||||
|
checked: persistentSettings.displayWalletNameInTitleBar
|
||||||
|
onClicked: persistentSettings.displayWalletNameInTitleBar = !persistentSettings.displayWalletNameInTitleBar
|
||||||
|
text: qsTr("Display wallet name in title bar") + translationManager.emptyString
|
||||||
|
}
|
||||||
|
|
||||||
MoneroComponents.CheckBox {
|
MoneroComponents.CheckBox {
|
||||||
id: hideBalanceCheckBox
|
id: hideBalanceCheckBox
|
||||||
checked: persistentSettings.hideBalance
|
checked: persistentSettings.hideBalance
|
||||||
|
|||||||
Reference in New Issue
Block a user