add image cache

This commit is contained in:
2026-08-17 20:27:31 +07:00
parent 1159252dda
commit 37d6c3ccd6
8 changed files with 232 additions and 13 deletions
+4
View File
@@ -22,6 +22,10 @@ fn main() {
// Initialize theme
theme::init(cx);
// Install the shared image cache so avatars can be freed when
// their views close, instead of staying in memory forever.
workspace::image_cache::init(cx);
// Initialize backend and stores (connects relays, restores session)
std::fs::create_dir_all(paths::nostr_dir()).ok();
signed_state::init(paths::nostr_dir(), cx);