From cd78ee6654bc2727f856c1eaa0c3a58ffd72c0e1 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 5 May 2024 11:32:32 +0200 Subject: [PATCH] Launcher: parse maps and playlists on surface setup This allows you to scroll through the combo list with the scroll wheel without uncollapsing it. --- src/sdklauncher/basepanel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sdklauncher/basepanel.cpp b/src/sdklauncher/basepanel.cpp index 31d6ac8b..c24e4e1b 100644 --- a/src/sdklauncher/basepanel.cpp +++ b/src/sdklauncher/basepanel.cpp @@ -539,6 +539,11 @@ void CSurface::Init() //----------------------------------------------------------------------------- void CSurface::Setup() { + // Already parse these out since you can scroll select in a combo box + // without uncollapsing it. + this->ParseMaps(); + this->ParsePlaylists(); + this->m_ModeCombo->Items.Add("Host"); this->m_ModeCombo->Items.Add("Server"); this->m_ModeCombo->Items.Add("Client");