tweak: don't hide parts of UI in fullscreen

This commit is contained in:
Piotr Grabowski 2022-07-12 13:58:52 +02:00
parent 7e76744a37
commit a9bb1fd9df

View file

@ -182,17 +182,13 @@ func (app *App) setVFlip(vflip bool) {
func (app *App) setFullscreen(fullscreen bool) { func (app *App) setFullscreen(fullscreen bool) {
app.Config.Fullscreen = fullscreen app.Config.Fullscreen = fullscreen
if fullscreen { if fullscreen {
app.W.Statusbar.Hide()
app.W.Toolbar.Hide()
//app.Menubar.Hide() // BUG: menubar visible on fullscreen
app.W.MainWindow.Fullscreen() app.W.MainWindow.Fullscreen()
} else { } else {
app.W.Statusbar.Show()
app.W.Toolbar.Show()
//app.Menubar.Show()
app.W.MainWindow.Unfullscreen() app.W.MainWindow.Unfullscreen()
} }
app.W.MenuItemFullscreen.SetActive(fullscreen) app.W.MenuItemFullscreen.SetActive(fullscreen)
} }