Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public void LoadSession()
stepStopwatch.Restart();
_extensionManager?.ClearParserCaches();
_logger.Debug($"[PERF] ClearParserCaches: {stepStopwatch.ElapsedMilliseconds}ms");

// Clear the cached theme so icon selection reflects the active theme at reload time.
// Without this, switching between Dark and Light mode requires a full Revit restart
// because the first-load theme detection result is retained for the process lifetime.
RevitThemeDetector.ClearCache();

// Initialize the ScriptExecutor before executing any scripts
stepStopwatch.Restart();
Expand Down