aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/main.qml b/main.qml
index d23069d0..d8b4b0c2 100644
--- a/main.qml
+++ b/main.qml
@@ -237,7 +237,10 @@ ApplicationWindow {
persistentSettings.nettype);
}
+ // Hide titlebar based on persistentSettings.customDecorations
+ titleBar.visible = persistentSettings.customDecorations;
}
+
function closeWallet() {
// Disconnect all listeners
@@ -928,11 +931,14 @@ ApplicationWindow {
x = 0
if (y < 0)
y = 0
- persistentSettings.customDecorations = custom
+ persistentSettings.customDecorations = custom;
+ titleBar.visible = custom; // hides custom titlebar based on customDecorations
+
if (custom)
- appWindow.flags = Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint
+ appWindow.flags = Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint;
else
- appWindow.flags = Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint | Qt.WindowMaximizeButtonHint
+ appWindow.flags = Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint | Qt.WindowMaximizeButtonHint;
+
appWindow.hide()
appWindow.x = x
appWindow.y = y