refactor: exit app

This commit is contained in:
huzibaca 2024-09-18 02:48:55 +08:00
parent 95fb4f2e50
commit d18b78c11c

View File

@ -2,7 +2,7 @@ use crate::{
config::*, config::*,
core::*, core::*,
feat, feat,
utils::{dirs, help, resolve}, utils::{dirs, help},
}; };
use crate::{ret_err, wrap_err}; use crate::{ret_err, wrap_err};
use anyhow::{Context, Result}; use anyhow::{Context, Result};
@ -371,11 +371,8 @@ pub fn open_devtools(app_handle: tauri::AppHandle) {
} }
#[tauri::command] #[tauri::command]
pub fn exit_app(app_handle: tauri::AppHandle) { pub fn exit_app() {
let _ = resolve::save_window_size_position(&app_handle, true); feat::quit();
resolve::resolve_reset();
app_handle.exit(0);
std::process::exit(0);
} }
pub mod service { pub mod service {