We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e861d commit a7d1939Copy full SHA for a7d1939
1 file changed
src/Theme.cpp
@@ -204,6 +204,7 @@ void SetThemeByIndex(int themeIdx) {
204
if (themeIdx >= gThemeCount) {
205
themeIdx = 0;
206
}
207
+ bool themeChanged = (gCurrThemeIndex != themeIdx);
208
gCurrThemeIndex = themeIdx;
209
gCurrSetThemeCmdId = gFirstSetThemeCmdId + themeIdx;
210
gCurrentTheme = gThemes->At(gCurrThemeIndex);
@@ -236,11 +237,15 @@ void SetThemeByIndex(int themeIdx) {
236
237
DarkMode::setViewBackgroundColor(ThemeWindowControlBackgroundColor());
238
DarkMode::calculateTreeViewStyle();
239
- UpdateAfterThemeChange();
240
+ if (themeChanged) {
241
+ UpdateAfterThemeChange();
242
+ }
243
244
DarkMode::setPrevTreeViewStyle();
245
} else {
246
247
248
249
250
};
251
0 commit comments