1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-24 11:17:15 +01:00

js: minimize frameless window when clicking on taskbar icon

Co-authored-by: rating89us <45968869+rating89us@users.noreply.github.com>
This commit is contained in:
selsta 2022-04-30 16:14:57 +02:00
parent 2e2ae5c88f
commit 3ba976638f
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -1,4 +1,5 @@
var flagsCustomDecorations = (Qt.FramelessWindowHint | Qt.CustomizeWindowHint | Qt.WindowSystemMenuHint | Qt.Window);
var flagsCustomDecorationsBase = (Qt.FramelessWindowHint | Qt.CustomizeWindowHint | Qt.WindowSystemMenuHint | Qt.Window);
var flagsCustomDecorations = isWindows ? (flagsCustomDecorationsBase | Qt.WindowMinimizeButtonHint) : flagsCustomDecorationsBase;
var flags = (Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint | Qt.WindowMaximizeButtonHint | Qt.WindowFullscreenButtonHint);
/**