mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Maximize desktop window on launch (#925)
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
"title": "",
|
||||
"width": 800,
|
||||
"height": 600,
|
||||
"maximized": true,
|
||||
"visible": false,
|
||||
"titleBarStyle": "Overlay",
|
||||
"hiddenTitle": true,
|
||||
|
||||
Reference in New Issue
Block a user