Added cache debug statements
This commit is contained in:
@@ -252,6 +252,7 @@ impl DesktopFile {
|
|||||||
return Some(icon);
|
return Some(icon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
print!("Cache miss")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: handle preferred_theme
|
// TODO: handle preferred_theme
|
||||||
@@ -311,7 +312,7 @@ impl Icon {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.to_owned(),
|
.to_owned(),
|
||||||
) {
|
) {
|
||||||
dbg!("Saving value in the DB");
|
print!("Saving in the cache");
|
||||||
IMAGE_CACHE.lock().unwrap().insert(
|
IMAGE_CACHE.lock().unwrap().insert(
|
||||||
self.path
|
self.path
|
||||||
.with_extension("")
|
.with_extension("")
|
||||||
|
|||||||
Reference in New Issue
Block a user