fix: force check window to center on every show (#1044)

This commit is contained in:
BiggerRain
2026-01-05 16:41:14 +08:00
committed by GitHub
parent 39096b204e
commit b0cdaa3ec8
2 changed files with 2 additions and 1 deletions

View File

@@ -401,6 +401,7 @@ async fn show_check(app_handle: AppHandle) {
.get_webview_window(CHECK_WINDOW_LABEL)
.expect("we have a check window");
window.center().unwrap();
window.show().unwrap();
window.unminimize().unwrap();
window.set_focus().unwrap();

View File

@@ -64,7 +64,7 @@
"minWidth": 340,
"height": 260,
"minHeight": 260,
"center": false,
"center": true,
"decorations": false,
"transparent": true,
"maximizable": false,