From 540ebe7256efa2b9a9605c94bbbe11a5f529d8cc Mon Sep 17 00:00:00 2001 From: Arisotura Date: Thu, 31 Oct 2024 13:57:53 +0100 Subject: [PATCH] disable 'Enable cheats' until something is loaded, to make it consistent with 'Manage cheats' --- src/frontend/qt_sdl/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/qt_sdl/Window.cpp b/src/frontend/qt_sdl/Window.cpp index 1d207949..430f0d6e 100644 --- a/src/frontend/qt_sdl/Window.cpp +++ b/src/frontend/qt_sdl/Window.cpp @@ -726,6 +726,7 @@ MainWindow::MainWindow(int id, EmuInstance* inst, QWidget* parent) : actDateTime->setEnabled(true); actPowerManagement->setEnabled(false); + actEnableCheats->setEnabled(false); actSetupCheats->setEnabled(false); actTitleManager->setEnabled(!globalCfg.GetString("DSi.NANDPath").empty()); @@ -1274,6 +1275,7 @@ void MainWindow::updateCartInserted(bool gba) win->actCurrentCart->setText(label); win->actEjectCart->setEnabled(inserted); win->actImportSavefile->setEnabled(inserted); + win->actEnableCheats->setEnabled(inserted); win->actSetupCheats->setEnabled(inserted); win->actROMInfo->setEnabled(inserted); win->actRAMInfo->setEnabled(inserted);