fix(window): only restart when enabling system titlebar
Disabling system titlebar works at runtime (decorations:true -> false is fine on Linux/Wayland). Only enabling requires a restart because the window must be born with decorations:true for WM buttons to work. When disabling: remove OS decorations via setDecorations(false) and restore the custom title bar immediately via notifyListeners().
This commit is contained in:
1 parent
c88974c468
commit
68b227f46c
5 files changed
+20
-11
No files matched your search
@@ -617,7 +617,7 @@
|
||||
"inAppToasts": "In-app toasts notifications",
|
||||
"systemNotifications": "System Notifications",
|
||||
"useSystemTitleBar": "Use system title bar",
|
||||
"useSystemTitleBarDesc": "Replace QBZ custom title bar with your system's native window decorations. The app will restart to apply this change.",
|
||||
"useSystemTitleBarDesc": "Replace QBZ custom title bar with your system's native window decorations. Enabling this will restart the app.",
|
||||
"hideTitleBar": "Hide title bar",
|
||||
"hideTitleBarDesc": "Hide the title bar completely (for tiling window manager users)",
|
||||
"immersiveDefaultView": "Immersive default view",
|
||||
|
||||
Reference in new issue
Block a user