[desktop] tauri seve window size/position on exit

This commit is contained in:
Vladimir Stoilov
2024-07-23 17:25:59 +03:00
parent c3d787e3ce
commit 674787df87
6 changed files with 15 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ pub fn get_app_info(process_info: ProcessInfo) -> Result<AppInfo> {
return Ok(info.0);
}
Err(err) => {
error!(
dbg!(
"{}: failed to get icon: {}",
info.0.icon_name,
err.to_string()
@@ -409,7 +409,7 @@ fn get_icon_as_png_dataurl(name: &str, size: i8) -> Result<(String, String)> {
0,
);
if icon_info.is_null() {
error!("failed to lookup icon {}", name);
dbg!("failed to lookup icon {}", name);
continue;
}
@@ -423,7 +423,7 @@ fn get_icon_as_png_dataurl(name: &str, size: i8) -> Result<(String, String)> {
match read_and_convert_pixbuf(filename.clone()) {
Ok(pb) => return Ok((filename, pb)),
Err(err) => {
error!("failed to load icon from {}: {}", filename, err.to_string());
dbg!("failed to load icon from {}: {}", filename, err.to_string());
continue;
}