Skip to content

Commit

Permalink
disable 'Enable cheats' until something is loaded, to make it consist…
Browse files Browse the repository at this point in the history
…ent with 'Manage cheats'
  • Loading branch information
Arisotura committed Oct 31, 2024
1 parent 6dc3967 commit 540ebe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frontend/qt_sdl/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 540ebe7

Please sign in to comment.