mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 11:08:32 +08:00
refactor: exit app
This commit is contained in:
1 parent
95fb4f2e50
commit
d18b78c11c
1 file changed
+3
-6
@@ -2,7 +2,7 @@ use crate::{
|
||||
config::*,
|
||||
core::*,
|
||||
feat,
|
||||
utils::{dirs, help, resolve},
|
||||
utils::{dirs, help},
|
||||
};
|
||||
use crate::{ret_err, wrap_err};
|
||||
use anyhow::{Context, Result};
|
||||
@@ -371,11 +371,8 @@ pub fn open_devtools(app_handle: tauri::AppHandle) {
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn exit_app(app_handle: tauri::AppHandle) {
|
||||
let _ = resolve::save_window_size_position(&app_handle, true);
|
||||
resolve::resolve_reset();
|
||||
app_handle.exit(0);
|
||||
std::process::exit(0);
|
||||
pub fn exit_app() {
|
||||
feat::quit();
|
||||
}
|
||||
|
||||
pub mod service {
|
||||
|
||||
Reference in new issue
Block a user