Qt: Don't double-create game list
This commit is contained in:
parent
77b282862f
commit
feb48899c3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue