This commit is contained in:
luoliangyi 2023-05-27 14:09:54 +08:00
parent 19d4955538
commit 41c5d71d98
1 changed files with 3 additions and 7 deletions

View File

@ -85,11 +85,11 @@ int Manager::showProgressUi(bool qt, HWND parent, std::function<void (ui_result)
m_progressUiCallback = callback;
m_notify = notify;
if (!qt)
{
m_ProgressUiThreadId = GetCurrentThreadId();
emit createProgressUi(qt);
if (!qt)
{
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))
{
@ -97,10 +97,6 @@ int Manager::showProgressUi(bool qt, HWND parent, std::function<void (ui_result)
DispatchMessage(&msg);
}
}
else
{
on_createProgressUi(qt);
}
return 0;
}