mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
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:
committed by
Rafael Kitover
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")
|
||||
|
Reference in New Issue
Block a user