mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-23 02:45:12 -05:00
Merge pull request #13689 from JosJuice/lock-core-any-thread
Core: Let any thread call previously host-thread-only functions
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <QSize>
|
||||
#include <QStyle>
|
||||
#include <QStyleHints>
|
||||
#include <QThread>
|
||||
#include <QWidget>
|
||||
|
||||
#include "AudioCommon/AudioCommon.h"
|
||||
@@ -76,7 +77,7 @@ Settings::Settings()
|
||||
});
|
||||
|
||||
m_hotplug_event_hook = g_controller_interface.RegisterDevicesChangedCallback([this] {
|
||||
if (Core::IsHostThread())
|
||||
if (qApp->thread() == QThread::currentThread())
|
||||
{
|
||||
emit DevicesChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user