The HelpComponent icon cache is now cleared when pressing ctrl-r

This commit is contained in:
Leon Styhre 2025-03-14 23:06:33 +01:00
parent 76423107ad
commit da11140626
2 changed files with 2 additions and 0 deletions

View file

@ -513,6 +513,7 @@ bool GamelistBase::input(InputConfig* config, Input input)
(SDL_GetModState() & (KMOD_LCTRL | KMOD_RCTRL)) && input.id == SDLK_r &&
input.value != 0) {
LOG(LogDebug) << "GamelistView::input(): Reloading view";
mWindow->clearHelpPromptsImageCache();
ViewController::getInstance()->reloadGamelistView(this->mRoot->getSystem(), true);
return true;
}

View file

@ -112,6 +112,7 @@ bool SystemView::input(InputConfig* config, Input input)
if (config->getDeviceId() == DEVICE_KEYBOARD && input.value && input.id == SDLK_r &&
SDL_GetModState() & KMOD_LCTRL && Settings::getInstance()->getBool("Debug")) {
LOG(LogDebug) << "SystemView::input(): Reloading all";
mWindow->clearHelpPromptsImageCache();
TextureResource::manualUnloadAll();
ViewController::getInstance()->reloadAll();
return true;