This commit is contained in:
parent
19d4955538
commit
41c5d71d98
|
@ -85,11 +85,11 @@ int Manager::showProgressUi(bool qt, HWND parent, std::function<void (ui_result)
|
||||||
m_progressUiCallback = callback;
|
m_progressUiCallback = callback;
|
||||||
m_notify = notify;
|
m_notify = notify;
|
||||||
|
|
||||||
if (!qt)
|
|
||||||
{
|
|
||||||
m_ProgressUiThreadId = GetCurrentThreadId();
|
m_ProgressUiThreadId = GetCurrentThreadId();
|
||||||
emit createProgressUi(qt);
|
emit createProgressUi(qt);
|
||||||
|
|
||||||
|
if (!qt)
|
||||||
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while (GetMessage(&msg, NULL, 0, 0))
|
while (GetMessage(&msg, NULL, 0, 0))
|
||||||
{
|
{
|
||||||
|
@ -97,10 +97,6 @@ int Manager::showProgressUi(bool qt, HWND parent, std::function<void (ui_result)
|
||||||
DispatchMessage(&msg);
|
DispatchMessage(&msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
on_createProgressUi(qt);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue