diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2017-12-07 17:01:16 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-29 23:04:01 +0100 |
| commit | 22792df5cdafec98da0a6045ee7c0f81ebed5ce2 (patch) | |
| tree | 91bca392201e0d7fbd80f20d0031d28b4a9611a9 /main.qml | |
| parent | af9e4e86f0bb4f63fbf516fd5b984a58668495a8 (diff) | |
| download | monzero-gui-22792df5cdafec98da0a6045ee7c0f81ebed5ce2.tar.gz monzero-gui-22792df5cdafec98da0a6045ee7c0f81ebed5ce2.tar.xz monzero-gui-22792df5cdafec98da0a6045ee7c0f81ebed5ce2.zip | |
Hide the custom titlebar when custom decorations are turned off
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |
