fix(launcher): invalidate icon resolver cache on open to pick up newly installed app icons

This commit is contained in:
Ly-sec
2026-05-07 13:19:07 +02:00
parent db8d7cd497
commit dc6331519e
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -364,6 +364,8 @@ void LauncherPanel::onOpen(std::string_view context) {
if (m_grid != nullptr) {
m_grid->scrollView().setScrollOffset(0.0f);
}
// Clear cached icon misses before each open so newly installed app icons appear.
m_iconResolver.invalidateCache();
onInputChanged(initialValue);
}
+2
View File
@@ -392,6 +392,8 @@ namespace {
IconResolver::IconResolver() { rebuild(); }
void IconResolver::invalidateCache() { rebuild(); }
bool IconResolver::checkThemeChanged() {
auto& state = iconThemeState();
IconThemePlan next = buildThemePlan();
+1
View File
@@ -10,6 +10,7 @@ public:
IconResolver();
const std::string& resolve(const std::string& iconName);
void invalidateCache();
static bool checkThemeChanged();
static std::uint64_t themeGeneration();