mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:43:44 +08:00
chore: add debug codes & logs
This commit is contained in:
parent
4feef53cb0
commit
03d714f2d4
@ -164,7 +164,17 @@ pub fn create_window() {
|
||||
.build()
|
||||
.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<()> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user