mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
refactor: exit app
This commit is contained in:
parent
49929bd473
commit
3ca1d03d34
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user