Skip to content

Commit

Permalink
fix cache at theme change
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Nov 29, 2024
1 parent 8be72db commit 6a08015
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/opl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,13 @@ void applyConfig(int themeID, int langID, int skipDeviceRefresh)

moduleUpdateMenuInternal(&list_support[i], changed, langChanged);
}
} else {
if (changed) {
for (int i = 0; i < MODE_COUNT; i++) {
if (list_support[i].support && list_support[i].subMenu)
submenuRebuildCache(list_support[i].subMenu);
}
}
}

bgmUnMute();
Expand Down

0 comments on commit 6a08015

Please sign in to comment.