mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-22 01:30:21 +02:00
Hide the custom titlebar when custom decorations are turned off
This commit is contained in:
parent
af9e4e86f0
commit
22792df5cd
12
main.qml
12
main.qml
@ -237,7 +237,10 @@ ApplicationWindow {
|
|||||||
persistentSettings.nettype);
|
persistentSettings.nettype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide titlebar based on persistentSettings.customDecorations
|
||||||
|
titleBar.visible = persistentSettings.customDecorations;
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeWallet() {
|
function closeWallet() {
|
||||||
|
|
||||||
// Disconnect all listeners
|
// Disconnect all listeners
|
||||||
@ -928,11 +931,14 @@ ApplicationWindow {
|
|||||||
x = 0
|
x = 0
|
||||||
if (y < 0)
|
if (y < 0)
|
||||||
y = 0
|
y = 0
|
||||||
persistentSettings.customDecorations = custom
|
persistentSettings.customDecorations = custom;
|
||||||
|
titleBar.visible = custom; // hides custom titlebar based on customDecorations
|
||||||
|
|
||||||
if (custom)
|
if (custom)
|
||||||
appWindow.flags = Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint
|
appWindow.flags = Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint;
|
||||||
else
|
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.hide()
|
||||||
appWindow.x = x
|
appWindow.x = x
|
||||||
appWindow.y = y
|
appWindow.y = y
|
||||||
|
Loading…
Reference in New Issue
Block a user