EvtMainFrame: add _exportButton to updateCommandsState().

This commit is contained in:
Guillaume Jacquemin 2020-01-14 12:26:05 +01:00 committed by Guillaume Jacquemin
parent 8fc5f1ecc5
commit fd0879c9ad

View file

@ -335,6 +335,7 @@ void EvtMainFrame::updateCommandsState() {
HangarState hangar_state = _manager.hangarState(selection); HangarState hangar_state = _manager.hangarState(selection);
_importButton->Enable(selection != -1 && game_state != GameState::Running); _importButton->Enable(selection != -1 && game_state != GameState::Running);
_exportButton->Enable(selection != -1);
_moveButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty && hangar_state != HangarState::Invalid); _moveButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty && hangar_state != HangarState::Invalid);
_deleteButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty); _deleteButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty);
} }