minor refactoring of app startup sequence & some extra trivial matters
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user