From b28a71085e1d771d36069fb4e17640c091a96eec Mon Sep 17 00:00:00 2001 From: Kvaz1r Date: Sun, 22 Aug 2021 11:21:41 +0300 Subject: [PATCH] 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 --- src/univ/menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index 77a03de14e..49cf5165fc 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -2563,6 +2563,7 @@ void wxMenuBar::OnDismiss() m_current = -1; RefreshItem(current); + Update(); } GiveAwayFocus();