mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Restore the yields
Was getting some timer assertions, so restoring the yields. Better the evil that you know...
This commit is contained in:
parent
8f77334286
commit
45e70b605f
@ -1336,7 +1336,6 @@ ProgressDialog::Show(bool show)
|
||||
return wxDialog::Show(show);
|
||||
}
|
||||
|
||||
#include <wx/evtloop.h>
|
||||
//
|
||||
// Update the time and, optionally, the message
|
||||
//
|
||||
@ -1398,19 +1397,8 @@ ProgressDialog::Update(int value, const wxString & message)
|
||||
|
||||
mLastUpdate = now;
|
||||
}
|
||||
#if wxCHECK_VERSION(3, 0, 0)
|
||||
wxEventLoopBase *loop = wxEventLoop::GetActive();
|
||||
#else
|
||||
wxEventLoop *loop = wxEventLoop::GetActive();
|
||||
#endif
|
||||
if (loop)
|
||||
{
|
||||
int i = 10;
|
||||
while (loop->Pending() && --i)
|
||||
{
|
||||
loop->Dispatch();
|
||||
}
|
||||
}
|
||||
|
||||
wxYieldIfNeeded();
|
||||
|
||||
return eProgressSuccess;
|
||||
}
|
||||
@ -1663,19 +1651,7 @@ int TimerProgressDialog::Update(const wxString & message /*= wxEmptyString*/)
|
||||
mLastUpdate = now;
|
||||
}
|
||||
|
||||
#if wxCHECK_VERSION(3, 0, 0)
|
||||
wxEventLoopBase *loop = wxEventLoop::GetActive();
|
||||
#else
|
||||
wxEventLoop *loop = wxEventLoop::GetActive();
|
||||
#endif
|
||||
if (loop)
|
||||
{
|
||||
int i = 10;
|
||||
while (loop->Pending() && --i)
|
||||
{
|
||||
loop->Dispatch();
|
||||
}
|
||||
}
|
||||
wxYieldIfNeeded();
|
||||
|
||||
return eProgressSuccess;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user