Remove open file menu items when debug save is disabled
This commit is contained in:
parent
4f2f3725bf
commit
1dc70ebf32
@ -967,6 +967,10 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
|
|
||||||
#if JS8_SAVE_AUDIO
|
#if JS8_SAVE_AUDIO
|
||||||
ui->menuSave->setEnabled(true);
|
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
|
#endif
|
||||||
|
|
||||||
// remove disabled menus from the menu bar
|
// remove disabled menus from the menu bar
|
||||||
|
Loading…
Reference in New Issue
Block a user