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);
/**