mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-03 21:57:51 -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();
|
waterfallCanvas->processInputQueue();
|
||||||
demodWaterfallCanvas->processInputQueue();
|
demodWaterfallCanvas->processInputQueue();
|
||||||
|
|
||||||
if (this->IsVisible()) {
|
if (!this->IsActive()) {
|
||||||
#ifdef __APPLE__
|
|
||||||
usleep(5000);
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
usleep(15000);
|
usleep(50000);
|
||||||
#else
|
#else
|
||||||
Sleep(15);
|
Sleep(50);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user