Maximize desktop window on launch (#925)

This commit is contained in:
klopez4212
2026-06-09 18:08:37 +01:00
committed by GitHub
parent ae430d4dd9
commit 4dfae61f24
2 changed files with 12 additions and 1 deletions
+11 -1
View File
@@ -383,7 +383,17 @@ pub fn run() {
.plugin(tauri_plugin_opener::init())
.plugin(
tauri_plugin_window_state::Builder::default()
.with_state_flags(StateFlags::all() & !StateFlags::VISIBLE)
// The main window should always launch edge-to-edge in the
// available desktop area. Do not let stale saved geometry or
// fullscreen state override the maximized launch config.
.with_state_flags(
StateFlags::all()
& !(StateFlags::VISIBLE
| StateFlags::POSITION
| StateFlags::SIZE
| StateFlags::MAXIMIZED
| StateFlags::FULLSCREEN),
)
.build(),
)
.plugin(tauri_plugin_websocket::init())
+1
View File
@@ -19,6 +19,7 @@
"title": "",
"width": 800,
"height": 600,
"maximized": true,
"visible": false,
"titleBarStyle": "Overlay",
"hiddenTitle": true,