Merge pull request #8515 from MilkeeyCat/pr_ddnet_fix_browser_settings_argument_highlighting

Correct arguments highlighting after removing entry
This commit is contained in:
archimede67 2024-06-23 18:02:43 +00:00 committed by GitHub
commit 76b53d7b7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}