mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
fix: correct arguments highlighting after removing entry
This commit is contained in:
parent
f5d28f155a
commit
cdfe451880
|
@ -84,7 +84,10 @@ void CEditor::RenderServerSettingsEditor(CUIRect View, bool ShowServerSettingsEd
|
||||||
s_CommandSelectedIndex = m_Map.m_vSettings.size() - 1;
|
s_CommandSelectedIndex = m_Map.m_vSettings.size() - 1;
|
||||||
if(s_CommandSelectedIndex >= 0)
|
if(s_CommandSelectedIndex >= 0)
|
||||||
m_SettingsCommandInput.Set(m_Map.m_vSettings[s_CommandSelectedIndex].m_aCommand);
|
m_SettingsCommandInput.Set(m_Map.m_vSettings[s_CommandSelectedIndex].m_aCommand);
|
||||||
|
else
|
||||||
|
m_SettingsCommandInput.Clear();
|
||||||
m_Map.OnModify();
|
m_Map.OnModify();
|
||||||
|
m_MapSettingsCommandContext.Update();
|
||||||
s_ListBox.ScrollToSelected();
|
s_ListBox.ScrollToSelected();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue