GTK: Fix emulation stuck paused after closing the general options dialog when the "pause when inactive" option has been toggled.
This commit is contained in:
parent
4a9bf47455
commit
bca14a4b2e
|
@ -542,9 +542,7 @@ bool Window::bOnEmuIdle()
|
|||
|
||||
bool Window::on_focus_in_event(GdkEventFocus * _pstEvent)
|
||||
{
|
||||
if (emulating
|
||||
&& ! m_bPaused
|
||||
&& m_poCoreConfig->oGetKey<bool>("pause_when_inactive"))
|
||||
if (emulating && !m_bPaused)
|
||||
{
|
||||
vStartEmu();
|
||||
soundResume();
|
||||
|
@ -555,7 +553,7 @@ bool Window::on_focus_in_event(GdkEventFocus * _pstEvent)
|
|||
bool Window::on_focus_out_event(GdkEventFocus * _pstEvent)
|
||||
{
|
||||
if (emulating
|
||||
&& ! m_bPaused
|
||||
&& !m_bPaused
|
||||
&& m_poCoreConfig->oGetKey<bool>("pause_when_inactive"))
|
||||
{
|
||||
vStopEmu();
|
||||
|
|
Loading…
Reference in New Issue