mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #6684 from spycrab/qt_wrong_thread
Qt/Settings: Emit EmulationStateChanged from the UI thread
This commit is contained in:
commit
1b63810e85
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@
|
|||
Settings::Settings()
|
||||
{
|
||||
qRegisterMetaType<Core::State>();
|
||||
Core::SetOnStateChangedCallback(
|
||||
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
|
||||
Core::SetOnStateChangedCallback([this](Core::State new_state) {
|
||||
QueueOnObject(this, [this, new_state] { emit EmulationStateChanged(new_state); });
|
||||
});
|
||||
|
||||
Config::AddConfigChangedCallback(
|
||||
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
|
||||
|
|
Loading…
Add table
Reference in a new issue