mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 05:03:45 +08:00
chore: add debug codes & logs
This commit is contained in:
parent
44db98f260
commit
6ba276b43f
@ -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<()> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user