Use IsThisEnabled() for wxActivityIndicator appearance

Determine the enabled state using IsThisEnabled() instead of
IsEnabled(), because the latter returns false if the entire window is
disabled without its appearance being affected, e.g. if another window
is shown modally.
This commit is contained in:
Vaclav Slavik
2015-03-29 11:08:27 +02:00
parent 8ef14b52c3
commit 91b1ee05c0

View File

@@ -150,7 +150,7 @@ private:
// the next position every time.
gc->Rotate(m_frame*angle);
const bool isEnabled = m_win->IsEnabled();
const bool isEnabled = m_win->IsThisEnabled();
for ( int n = 0; n < NUM_DOTS; n++ )
{
// Draw all dots uniformly grey when the window is disabled,