mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-03 13:47:53 -04:00
IsVisible is *not* for app visibility; Hello there, IsActive()
This commit is contained in:
parent
8c7d2576ad
commit
9c1d9f5798
@ -782,15 +782,11 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
|
||||
waterfallCanvas->processInputQueue();
|
||||
demodWaterfallCanvas->processInputQueue();
|
||||
|
||||
if (this->IsVisible()) {
|
||||
#ifdef __APPLE__
|
||||
usleep(5000);
|
||||
#endif
|
||||
} else {
|
||||
if (!this->IsActive()) {
|
||||
#ifndef _WIN32
|
||||
usleep(15000);
|
||||
usleep(50000);
|
||||
#else
|
||||
Sleep(15);
|
||||
Sleep(50);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user