Qt: Fix menu bar staying hidden in full screen (fixes #317)

This commit is contained in:
Vicki Pfau 2019-06-08 16:12:09 -07:00
parent 5321ffd227
commit 763eccd69a
2 changed files with 7 additions and 2 deletions

View File

@ -30,8 +30,7 @@ Other fixes:
- Switch: Fix threading-related crash on second launch
- Qt: Fix FPS target maxing out at 59.727 (fixes mgba.io/i/1421)
- Core: Fix crashes if core directories aren't set
- Qt: Cap audio buffer size to 8192 (fixes mgba.io/i/1433)
- GB Serialize: Fix loading non-BIOS state from BIOS (fixes mgba.io/i/1280)
- Qt: Fix menu bar staying hidden in full screen (fixes mgba.io/i/317)
Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -821,6 +821,9 @@ void Window::gameStopped() {
m_display.reset();
close();
}
#ifndef Q_OS_MAC
menuBar()->show();
#endif
#ifdef USE_DISCORD_RPC
DiscordCoordinator::gameStopped();
@ -1042,6 +1045,9 @@ void Window::openStateWindow(LoadSave ls) {
m_stateWindow->setAttribute(Qt::WA_DeleteOnClose);
m_stateWindow->setMode(ls);
updateFrame();
#ifndef Q_OS_MAC
menuBar()->show();
#endif
attachWidget(m_stateWindow);
}