mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Defer loading .rdc from drag & drop, to unblock the calling application
This commit is contained in:
3 files changed
+13
-1
No files matched your search
@@ -372,6 +372,11 @@ void GUIInvoke::call(const std::function<void()> &f)
|
||||
return;
|
||||
}
|
||||
|
||||
defer(f);
|
||||
}
|
||||
|
||||
void GUIInvoke::defer(const std::function<void()> &f)
|
||||
{
|
||||
GUIInvoke *invoke = new GUIInvoke(f);
|
||||
invoke->moveToThread(qApp->thread());
|
||||
invoke->metaObject()->method(methodIndex).invoke(invoke, Qt::QueuedConnection);
|
||||
|
||||
Reference in new issue
Block a user