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": "Notificaciones en App",
|
||||
"systemNotifications": "Notificaciones del Sistema",
|
||||
"useSystemTitleBar": "Usar barra de título del sistema",
|
||||
"useSystemTitleBarDesc": "Reemplazar la barra de título personalizada de QBZ con las decoraciones nativas de tu sistema",
|
||||
"useSystemTitleBarDesc": "Reemplazar la barra de título personalizada de QBZ con las decoraciones nativas de tu sistema. La app se reiniciará para aplicar este cambio.",
|
||||
"hideTitleBar": "Ocultar barra de título",
|
||||
"hideTitleBarDesc": "Ocultar completamente la barra de título (para usuarios de gestores de ventanas en mosaico)",
|
||||
"immersiveDefaultView": "Vista predeterminada del modo inmersivo",
|
||||
|
||||
Reference in new issue
Block a user