mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Qt/Updater: Fixed an assert on m_parent->close() (was called from a wrong thread)
This commit is contained in:
@ -95,6 +95,11 @@ void Updater::OnUpdateAvailable(const NewVersionInformation& info)
|
|||||||
AutoUpdateChecker::RestartMode::RESTART_AFTER_UPDATE);
|
AutoUpdateChecker::RestartMode::RESTART_AFTER_UPDATE);
|
||||||
|
|
||||||
if (!later)
|
if (!later)
|
||||||
m_parent->close();
|
{
|
||||||
|
RunOnObject(m_parent, [this] {
|
||||||
|
m_parent->close();
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user