Qt: Invalidate FSUI cover cache when cover changed
This commit is contained in:
parent
738c96ffb3
commit
2f854de9d0
|
@ -986,10 +986,15 @@ void FullscreenUI::Render()
|
|||
|
||||
void FullscreenUI::InvalidateCoverCache()
|
||||
{
|
||||
if (!IsInitialized())
|
||||
if (!GPUThread::IsFullscreenUIRequested())
|
||||
return;
|
||||
|
||||
Host::RunOnCPUThread([]() { s_state.cover_image_map.clear(); });
|
||||
GPUThread::RunOnThread([]() {
|
||||
if (!IsInitialized())
|
||||
return;
|
||||
|
||||
s_state.cover_image_map.clear();
|
||||
});
|
||||
}
|
||||
|
||||
void FullscreenUI::ReturnToPreviousWindow()
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "qtutils.h"
|
||||
#include "settingswindow.h"
|
||||
|
||||
#include "core/fullscreen_ui.h"
|
||||
#include "core/game_list.h"
|
||||
#include "core/host.h"
|
||||
#include "core/settings.h"
|
||||
|
@ -476,6 +477,7 @@ void GameListWidget::gridIntScale(int int_scale)
|
|||
void GameListWidget::refreshGridCovers()
|
||||
{
|
||||
m_model->refreshCovers();
|
||||
Host::RunOnCPUThread(&FullscreenUI::InvalidateCoverCache);
|
||||
}
|
||||
|
||||
void GameListWidget::focusSearchWidget()
|
||||
|
|
Loading…
Reference in New Issue