**Refresh** and **Purge Game List Cache** now correctly enabled/disabled as notified by GameListRefreshRequested and GameListRefreshCompleted.

This commit is contained in:
Christian Aguilera
2020-09-27 02:40:56 +02:00
parent bada677c5a
commit 4ca92464c0
3 changed files with 13 additions and 6 deletions

View File

@ -156,6 +156,7 @@ void GameTracker::StartInternal()
m_cache.Save();
QueueOnObject(this, [] { Settings::Instance().NotifyMetadataRefreshComplete(); });
QueueOnObject(this, [] { Settings::Instance().NotifyRefreshGameListComplete(); });
}
bool GameTracker::AddPath(const QString& dir)
@ -347,5 +348,5 @@ void GameTracker::LoadGame(const QString& path)
void GameTracker::PurgeCache()
{
m_load_thread.EmplaceItem(Command{CommandType::PurgeCache, {}});
RefreshAll();
Settings::Instance().RefreshGameList();
}