mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
feat: integrate window state management for improved window restoration and logging
This commit is contained in:
@@ -17,6 +17,7 @@ use std::{
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
use tauri::{AppHandle, Manager};
|
||||
use tauri_plugin_window_state::WindowExt;
|
||||
use tokio::net::TcpListener;
|
||||
|
||||
use tauri::Url;
|
||||
@@ -373,6 +374,12 @@ pub fn create_window(is_show: bool) -> bool {
|
||||
*get_ui_ready().write() = true;
|
||||
}
|
||||
}
|
||||
logging_error!(
|
||||
Type::Window,
|
||||
true,
|
||||
newly_created_window
|
||||
.restore_state(tauri_plugin_window_state::StateFlags::all())
|
||||
);
|
||||
logging!(info, Type::Window, true, "窗口显示流程完成");
|
||||
} else {
|
||||
logging!(
|
||||
|
||||
Reference in New Issue
Block a user