From 1dc70ebf325f96110121b0b7966a9a747392d843 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Wed, 22 Apr 2020 20:22:16 -0400 Subject: [PATCH] Remove open file menu items when debug save is disabled --- mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 84a0d74..60bbdc0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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