Hide the window until loading is done
This commit is contained in:
6 files changed
+14
-19
No files matched your search
@@ -18,6 +18,7 @@
|
||||
"core:window:allow-start-dragging",
|
||||
"core:window:allow-toggle-maximize",
|
||||
"core:window:allow-request-user-attention",
|
||||
"core:window:allow-show",
|
||||
"core:webview:allow-create-webview-window",
|
||||
"fs:default",
|
||||
"fs:allow-remove",
|
||||
|
||||
@@ -836,6 +836,8 @@ async fn update(
|
||||
let mut new_url = window.url().unwrap();
|
||||
new_url.set_path("/update/updating");
|
||||
window.navigate(new_url).unwrap();
|
||||
let _ = window.show();
|
||||
let _ = window.set_focus();
|
||||
|
||||
let mut downloaded = 0;
|
||||
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
"width": 1000,
|
||||
"height": 600,
|
||||
"minWidth": 1000,
|
||||
"minHeight": 500
|
||||
"minHeight": 500,
|
||||
"visible": false
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
"height": 600,
|
||||
"minWidth": 1000,
|
||||
"minHeight": 500,
|
||||
"visible": false,
|
||||
"titleBarStyle": "Overlay",
|
||||
"hiddenTitle": true
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
"height": 632,
|
||||
"minWidth": 1000,
|
||||
"minHeight": 532,
|
||||
"visible": false,
|
||||
"decorations": false,
|
||||
"shadow": true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user