Merge pull request #967 from gilchavezm/patch-3

Qt: Update EmuApplication.cpp: handle Quit binding
This commit is contained in:
bearoso 2024-12-17 20:25:35 -06:00 committed by GitHub
commit 48fe934463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -386,6 +386,10 @@ void EmuApplication::handleBinding(std::string name, bool pressed)
{
window->openFile();
}
else if (name == "Quit" && pressed)
{
window->close();
}
}
bool EmuApplication::isBound(EmuBinding b)
@ -741,4 +745,4 @@ void EmuThread::run()
void EmuThread::setMainLoop(std::function<void ()> loop)
{
main_loop = loop;
}
}