feat(window): restart app on system titlebar toggle
Since the window must be created with the correct decoration state (runtime toggling doesn't work on Linux/Wayland), persist the setting to the Rust backend and restart the app immediately. Add restart_app Tauri command using AppHandle::restart(). Update i18n descriptions to inform the user the app will restart.
This commit is contained in:
1 parent
dec620ee4f
commit
c88974c468
6 files changed
+25
-19
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",
|
||||
"useSystemTitleBarDesc": "Replace QBZ custom title bar with your system's native window decorations. The app will restart to apply this change.",
|
||||
"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