Show status table only if we have teams defined in the editor.
This commit is contained in:
parent
01167bcc07
commit
bb23a861b4
1 changed files with 2 additions and 0 deletions
|
@ -281,6 +281,8 @@ bool editor_controller::can_execute_command(hotkey::HOTKEY_COMMAND command, int
|
|||
return context_manager_->get_map_context().get_units().size() != 0;
|
||||
|
||||
case HOTKEY_STATUS_TABLE:
|
||||
return !context_manager_->get_map_context().get_teams().empty();
|
||||
|
||||
case HOTKEY_EDITOR_SWITCH_TIME:
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue