fix up cheat toggle

This commit is contained in:
Arisotura
2024-10-31 20:33:57 +01:00
parent 6c6cefad6c
commit 1b8daa0465
4 changed files with 21 additions and 2 deletions

View File

@ -1655,7 +1655,12 @@ void MainWindow::onOpenPowerManagement()
void MainWindow::onEnableCheats(bool checked)
{
localCfg.SetBool("EnableCheats", checked);
emuInstance->enableCheats(checked);
emuThread->enableCheats(checked);
emuInstance->doOnAllWindows([=](MainWindow* win)
{
win->actEnableCheats->setChecked(checked);
}, windowID);
}
void MainWindow::onSetupCheats()