Cache published project previews for the next desktop launch

This commit is contained in:
gloamxun committed 2026-12-02 16:20:18 +08:00
1 parent 11ec5c853c
commit f727188c41
8 files changed
+350 -17

No files matched your search

+4 -1
View File
@@ -124,7 +124,10 @@ impl Library {
let staged = stage_sources(
&root, &source, &self.format, &self.manifest, &run, &files, self.profile,
)?;
OpeningEditor::start(info.id, run, staged)
let cache = super::preview_cache::PreviewCache::for_project(
&self.runs, &info.id, &run, &staged, &self.format, &self.manifest,
);
OpeningEditor::start(info.id, run, staged, cache)
}
}