Update autostart capability permissions

Enable more precise control over autostart functionality and clean up
logging code by removing unnecessary boolean parameters.
This commit is contained in:
Tunglies
2025-04-10 15:43:45 +08:00
parent 9070ef1dbe
commit 25d66a4eee
5 changed files with 24 additions and 61 deletions

View File

@@ -198,7 +198,6 @@ pub fn create_window(is_showup: bool) {
Ok(window) => {
logging!(info, Type::Window, true, "Window created successfully");
if is_showup {
println!("is showup");
let _ = window.show();
let _ = window.set_focus();
} else {
@@ -215,12 +214,7 @@ pub fn create_window(is_showup: bool) {
tauri::async_runtime::spawn(async move {
use tauri::Emitter;
logging!(
info,
Type::Window,
true,
"标记前端UI已准备就绪开始处理启动错误队列"
);
logging!(info, Type::Window, true, "UI gets ready.");
handle::Handle::global().mark_startup_completed();
if let Some(window) = app_handle_clone.get_webview_window("main") {