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:
parent
bf6f2d4ac2
commit
dcc0afa0d4
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue