minor refactoring of app startup sequence & some extra trivial matters

This commit is contained in:
2026-02-03 22:28:05 +08:00
parent e15cf16817
commit f696d5e385
24 changed files with 284 additions and 337 deletions

View File

@@ -1,3 +1,7 @@
use tauri::Manager;
use crate::get_app_handle;
pub mod active_app;
pub mod app_menu;
pub mod auth;
@@ -10,3 +14,11 @@ pub mod scene;
pub mod sprite_recolor;
pub mod welcome;
pub mod ws;
pub fn close_all_windows() {
let app_handle = get_app_handle();
let webview_windows = app_handle.webview_windows();
for window in webview_windows {
window.1.close().unwrap();
}
}