EvtMainFrame: add _exportButton to updateCommandsState().

This commit is contained in:
Guillaume Jacquemin 2020-01-14 12:26:05 +01:00
parent fcf005d5a3
commit 27a57494dc

View file

@ -335,6 +335,7 @@ void EvtMainFrame::updateCommandsState() {
HangarState hangar_state = _manager.hangarState(selection);
_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);
_deleteButton->Enable(selection != -1 && game_state != GameState::Running && hangar_state != HangarState::Empty);
}