From fd0879c9adfbfb01f71442dc8bcc85773ec745ea Mon Sep 17 00:00:00 2001 From: William JCM Date: Tue, 14 Jan 2020 12:26:05 +0100 Subject: [PATCH] EvtMainFrame: add _exportButton to updateCommandsState(). --- GUI/EvtMainFrame.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/GUI/EvtMainFrame.cpp b/GUI/EvtMainFrame.cpp index 28c15b8..02fddcc 100644 --- a/GUI/EvtMainFrame.cpp +++ b/GUI/EvtMainFrame.cpp @@ -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); }