fix(tray): undo brake

This commit is contained in:
Mathew-D
2026-05-10 21:24:44 -04:00
parent 2b96a2cd09
commit 776be99c93
-4
View File
@@ -965,8 +965,6 @@ void TrayService::ensureMenuCache(const std::string& itemId, const std::string&
cache.rootLoaded = false;
// Allow a fresh root AboutToShow after provider-side resets.
cache.rootAboutToShowPrimed = false;
// Bump generation to discard any in-flight GetLayout replies captured before this invalidation.
++cache.generation;
if (hadVisibleRootEntries) {
kLog.debug("LayoutUpdated root soft-invalidated without emit id={} rev={} parent={}", itemId, revision,
@@ -980,8 +978,6 @@ void TrayService::ensureMenuCache(const std::string& itemId, const std::string&
cache.loadingParents.erase(parent);
cache.nextRetryAt.erase(parent);
cache.failureStreak.erase(parent);
// Bump generation to discard any in-flight GetLayout replies captured before this invalidation.
++cache.generation;
}
}
kLog.debug("LayoutUpdated id={} rev={} parent={}", itemId, revision, parent);