chore: add debug codes & logs

This commit is contained in:
huzibaca 2024-11-23 05:43:13 +08:00
parent 4feef53cb0
commit 03d714f2d4
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -164,7 +164,17 @@ pub fn create_window() {
.build() .build()
.unwrap(); .unwrap();
let _ = window.restore_state(StateFlags::all()); println!("restore window state");
match window.restore_state(StateFlags::all()) {
Ok(_) => {
println!("window state restored successfully");
log::info!(target: "app", "window state restored successfully");
}
Err(e) => {
println!("failed to restore window state: {}", e);
log::error!(target: "app", "failed to restore window state: {}", e);
}
};
} }
pub async fn resolve_scheme(param: String) -> Result<()> { pub async fn resolve_scheme(param: String) -> Result<()> {