Qt: Don't double-create game list

This commit is contained in:
Connor McLaughlin 2020-01-24 14:51:07 +10:00
parent 77b282862f
commit feb48899c3
1 changed files with 1 additions and 7 deletions

View File

@ -25,7 +25,7 @@ QtHostInterface::QtHostInterface(QObject* parent)
: QObject(parent), HostInterface(), m_qsettings(QString::fromStdString(GetSettingsFileName()), QSettings::IniFormat)
{
checkSettings();
createGameList();
refreshGameList();
doUpdateInputMap();
createThread();
}
@ -154,12 +154,6 @@ void QtHostInterface::checkSettings()
m_settings.Load(si);
}
void QtHostInterface::createGameList()
{
m_game_list = std::make_unique<GameList>();
refreshGameList(false, false);
}
void QtHostInterface::refreshGameList(bool invalidate_cache /* = false */, bool invalidate_database /* = false */)
{
std::lock_guard<std::mutex> lock(m_qsettings_mutex);