From dcc0afa0d46633bcdae25f6c2d5fbe52ebe1e1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ed=C3=AAnis=20Freindorfer=20Azevedo?= Date: Tue, 4 Jun 2019 18:49:21 -0300 Subject: [PATCH] Fix window size when {en,dis}abling status bar. If the status bar option is enabled or disabled, there is a trigger that resizes the current window geometry to its zoom configuration. What should happen instead is the size remain the same. --- src/wx/cmdevents.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index 5923b3bf..cbcf73af 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2594,7 +2594,8 @@ EVT_HANDLER(StatusBar, "Enable status bar") mf->GetStatusBar()->Hide(); mf->SendSizeEvent(); - panel->AdjustSize(true); + panel->AdjustSize(false); + mf->SendSizeEvent(); } EVT_HANDLER(NoStatusMsg, "Disable on-screen status messages")