Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-10-04 19:15:42 +03:00
1 parent b2549f867e
commit 3f177a77aa
29 files changed
+457 -196

No files matched your search

+5
View File
@@ -115,6 +115,11 @@ impl Cache {
self.touch(&mut index, key)
}
/// The cached server, channel, group or client icon, if available.
pub fn icon(&self, id: u32) -> Option<PathBuf> {
(id != 0).then(|| self.get(&icon_key(id))).flatten()
}
fn touch(&self, index: &mut Index, key: &str) -> Option<PathBuf> {
let path = self.dir.join(key);
let tick = index.entries.get(key)?.tick;