EvtMainFrame: add _exportButton to updateCommandsState().
This commit is contained in:
parent
fcf005d5a3
commit
27a57494dc
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue