30 lines
599 B
Rust
30 lines
599 B
Rust
use tauri::Manager;
|
|
|
|
use crate::get_app_handle;
|
|
|
|
pub mod app_events;
|
|
pub mod app_menu;
|
|
pub mod auth;
|
|
pub mod client_config_manager;
|
|
pub mod cursor;
|
|
pub mod doll_editor;
|
|
pub mod health_manager;
|
|
pub mod health_monitor;
|
|
pub mod interaction;
|
|
pub mod petpet;
|
|
pub mod presence_state;
|
|
pub mod presence_modules;
|
|
pub mod scene;
|
|
pub mod scene_friends;
|
|
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();
|
|
}
|
|
}
|