aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-01-22 15:05:58 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-01-22 15:05:58 -0500
commit090dca784852dfdd31caa9cf19b0e0e977e0fbe8 (patch)
tree6c3457786dae6c98d82d6a96bdd432aed16e4d8a /main.qml
parentd3d26e37d0dae7aa6a3aeed4e6b742de5c881ecf (diff)
parent18f16d9ebd1edb2317f9aa175fa1482b2de2bb6c (diff)
downloadmonzero-gui-090dca784852dfdd31caa9cf19b0e0e977e0fbe8.tar.gz
monzero-gui-090dca784852dfdd31caa9cf19b0e0e977e0fbe8.tar.xz
monzero-gui-090dca784852dfdd31caa9cf19b0e0e977e0fbe8.zip
Merge pull request #3301
18f16d9 SettingsLayout: 'Display wallet name in title bar' option (xiphon)
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.qml b/main.qml
index a48feca4..9f711ade 100644
--- a/main.qml
+++ b/main.qml
@@ -53,7 +53,10 @@ import "version.js" as Version
ApplicationWindow {
id: appWindow
- title: "Monero" + (walletName ? " - " + walletName : "")
+ title: "Monero" +
+ (persistentSettings.displayWalletNameInTitleBar && walletName
+ ? " - " + walletName
+ : "")
minimumWidth: 750
minimumHeight: 450
@@ -1394,6 +1397,7 @@ ApplicationWindow {
property bool keyReuseMitigation2: true
property int segregationHeight: 0
property int kdfRounds: 1
+ property bool displayWalletNameInTitleBar: true
property bool hideBalance: false
property bool askPasswordBeforeSending: true
property bool lockOnUserInActivity: true
@@ -1811,7 +1815,7 @@ ApplicationWindow {
TitleBar {
id: titleBar
visible: persistentSettings.customDecorations && middlePanel.state !== "Merchant"
- walletName: appWindow.walletName
+ walletName: persistentSettings.displayWalletNameInTitleBar ? appWindow.walletName : ""
anchors.left: parent.left
anchors.right: parent.right
onCloseClicked: appWindow.close();