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.
This commit is contained in:
Edênis Freindorfer Azevedo 2019-06-04 18:49:21 -03:00 committed by Rafael Kitover
parent bf6f2d4ac2
commit dcc0afa0d4
1 changed files with 2 additions and 1 deletions

View File

@ -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")