Remove open file menu items when debug save is disabled

This commit is contained in:
Jordan Sherer 2020-04-22 20:22:16 -04:00
parent 4f2f3725bf
commit 1dc70ebf32

View File

@ -967,6 +967,10 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
#if JS8_SAVE_AUDIO
ui->menuSave->setEnabled(true);
#else
ui->menuFile->removeAction(ui->actionOpen);
ui->menuFile->removeAction(ui->actionOpen_next_in_directory);
ui->menuFile->removeAction(ui->actionDecode_remaining_files_in_directory);
#endif
// remove disabled menus from the menu bar