Improved responsiveness when refreshing game list.

This commit is contained in:
Christian Aguilera
2020-09-27 04:01:54 +02:00
parent 4ca92464c0
commit ee13e6ec80
9 changed files with 86 additions and 28 deletions

View File

@ -48,7 +48,7 @@ ToolBar::ToolBar(QWidget* parent) : QToolBar(parent)
connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this,
[this] { m_refresh_action->setEnabled(false); });
connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this,
connect(&Settings::Instance(), &Settings::GameListRefreshStarted, this,
[this] { m_refresh_action->setEnabled(true); });
OnEmulationStateChanged(Core::GetState());