Qt: Ignore resume states when "Save state on exit" is unchecked

This commit is contained in:
Connor McLaughlin 2020-07-23 02:44:06 +10:00
parent f3df4f91a2
commit 961afdf765
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ void MainWindow::onGameListEntryDoubleClicked(const GameListEntry* entry)
QString path = QString::fromStdString(entry->path);
if (!m_emulation_running)
{
if (!entry->code.empty() && m_host_interface->GetBoolSettingValue("General", "SaveStateOnExit", true))
if (!entry->code.empty() && m_host_interface->GetBoolSettingValue("Main", "SaveStateOnExit", true))
{
m_host_interface->resumeSystemFromState(path, true);
}