mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Qt/Settings: Emit EmulationStateChanged from the UI thread
This commit is contained in:
@ -20,8 +20,9 @@
|
|||||||
Settings::Settings()
|
Settings::Settings()
|
||||||
{
|
{
|
||||||
qRegisterMetaType<Core::State>();
|
qRegisterMetaType<Core::State>();
|
||||||
Core::SetOnStateChangedCallback(
|
Core::SetOnStateChangedCallback([this](Core::State new_state) {
|
||||||
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
|
QueueOnObject(this, [this, new_state] { emit EmulationStateChanged(new_state); });
|
||||||
|
});
|
||||||
|
|
||||||
Config::AddConfigChangedCallback(
|
Config::AddConfigChangedCallback(
|
||||||
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
|
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
|
||||||
|
Reference in New Issue
Block a user