From a9bb1fd9df1c48ed76ae61b4ab8149b631eab24d Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Tue, 12 Jul 2022 13:58:52 +0200 Subject: [PATCH] tweak: don't hide parts of UI in fullscreen --- config.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/config.go b/config.go index 74eeec9..9daf730 100644 --- a/config.go +++ b/config.go @@ -182,17 +182,13 @@ func (app *App) setVFlip(vflip bool) { func (app *App) setFullscreen(fullscreen bool) { app.Config.Fullscreen = fullscreen + if fullscreen { - app.W.Statusbar.Hide() - app.W.Toolbar.Hide() - //app.Menubar.Hide() // BUG: menubar visible on fullscreen app.W.MainWindow.Fullscreen() } else { - app.W.Statusbar.Show() - app.W.Toolbar.Show() - //app.Menubar.Show() app.W.MainWindow.Unfullscreen() } + app.W.MenuItemFullscreen.SetActive(fullscreen) }