mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8515 from MilkeeyCat/pr_ddnet_fix_browser_settings_argument_highlighting
Correct arguments highlighting after removing entry
This commit is contained in:
commit
76b53d7b7a
|
@ -84,7 +84,10 @@ void CEditor::RenderServerSettingsEditor(CUIRect View, bool ShowServerSettingsEd
|
|||
s_CommandSelectedIndex = m_Map.m_vSettings.size() - 1;
|
||||
if(s_CommandSelectedIndex >= 0)
|
||||
m_SettingsCommandInput.Set(m_Map.m_vSettings[s_CommandSelectedIndex].m_aCommand);
|
||||
else
|
||||
m_SettingsCommandInput.Clear();
|
||||
m_Map.OnModify();
|
||||
m_MapSettingsCommandContext.Update();
|
||||
s_ListBox.ScrollToSelected();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue