chore: remove notes

This commit is contained in:
huzibaca 2024-11-23 06:47:43 +08:00
parent 18e8357b6a
commit 4a90ffe619
2 changed files with 0 additions and 4 deletions

View File

@ -123,11 +123,9 @@ pub fn quit(code: Option<i32>) {
log_err!(handle::Handle::global().get_window().unwrap().close()); log_err!(handle::Handle::global().get_window().unwrap().close());
match app_handle.save_window_state(StateFlags::all()) { match app_handle.save_window_state(StateFlags::all()) {
Ok(_) => { Ok(_) => {
println!("window state saved successfully");
log::info!(target: "app", "window state saved successfully"); log::info!(target: "app", "window state saved successfully");
} }
Err(e) => { Err(e) => {
println!("failed to save window state: {}", e);
log::error!(target: "app", "failed to save window state: {}", e); log::error!(target: "app", "failed to save window state: {}", e);
} }
}; };

View File

@ -164,11 +164,9 @@ pub fn create_window() {
match window.restore_state(StateFlags::all()) { match window.restore_state(StateFlags::all()) {
Ok(_) => { Ok(_) => {
println!("window state restored successfully");
log::info!(target: "app", "window state restored successfully"); log::info!(target: "app", "window state restored successfully");
} }
Err(e) => { Err(e) => {
println!("failed to restore window state: {}", e);
log::error!(target: "app", "failed to restore window state: {}", e); log::error!(target: "app", "failed to restore window state: {}", e);
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
window window