Skip to content

Commit

Permalink
Merge pull request #1406 from KrahJohlito/cache
Browse files Browse the repository at this point in the history
fix cache at theme change
  • Loading branch information
AKuHAK authored Nov 29, 2024
2 parents 8be72db + 6a08015 commit 14d12ae
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 14d12ae

Please sign in to comment.