mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 02:53:45 +08:00
fix: the save_indow_size_position method has been triggered twice, at the same time
1. remove windowEvent::destoryed hook
This commit is contained in:
parent
08b1160d63
commit
4eccedcd78
@ -142,10 +142,8 @@ pub fn run() {
|
|||||||
tauri::RunEvent::WindowEvent { label, event, .. } => {
|
tauri::RunEvent::WindowEvent { label, event, .. } => {
|
||||||
if label == "main" {
|
if label == "main" {
|
||||||
match event {
|
match event {
|
||||||
tauri::WindowEvent::Destroyed => {
|
|
||||||
let _ = resolve::save_window_size_position(true);
|
|
||||||
}
|
|
||||||
tauri::WindowEvent::CloseRequested { .. } => {
|
tauri::WindowEvent::CloseRequested { .. } => {
|
||||||
|
println!("closing window...");
|
||||||
let _ = resolve::save_window_size_position(true);
|
let _ = resolve::save_window_size_position(true);
|
||||||
}
|
}
|
||||||
tauri::WindowEvent::Moved(_) | tauri::WindowEvent::Resized(_) => {
|
tauri::WindowEvent::Moved(_) | tauri::WindowEvent::Resized(_) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user