mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix being unable to pause manually when using auto-pausing
This commit is contained in:
parent
e82c050a7d
commit
246efef6b9
1
CHANGES
1
CHANGES
|
@ -36,6 +36,7 @@ Bugfixes:
|
|||
- VFS: Fix reading multiple files from a 7z archive
|
||||
- GBA: Fix filehandle leak with savegames
|
||||
- GBA: Timer 0 cannot be count up
|
||||
- Qt: Fix being unable to pause manually when using auto-pausing
|
||||
Misc:
|
||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||
- OpenGL: Log shader compilation failure
|
||||
|
|
|
@ -1530,6 +1530,7 @@ void Window::focusCheck() {
|
|||
}
|
||||
if (QGuiApplication::focusWindow() && m_autoresume) {
|
||||
m_controller->setPaused(false);
|
||||
m_autoresume = false;
|
||||
} else if (!QGuiApplication::focusWindow() && !m_controller->isPaused()) {
|
||||
m_autoresume = true;
|
||||
m_controller->setPaused(true);
|
||||
|
|
Loading…
Reference in New Issue