Call Update before giving away focus on dismiss menu in wxUniv

Without immediate refreshing menu is appearing as inactive.

Closes https://github.com/wxWidgets/wxWidgets/pull/2479
This commit is contained in:
Kvaz1r
2021-08-22 11:21:41 +03:00
committed by Vadim Zeitlin
parent 593864a816
commit b28a71085e

View File

@@ -2563,6 +2563,7 @@ void wxMenuBar::OnDismiss()
m_current = -1;
RefreshItem(current);
Update();
}
GiveAwayFocus();