From 2b1d598bf3a352dbc8f7c96041ef90d45dd4154f Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Fri, 19 May 2023 16:23:48 -0600 Subject: [PATCH] GUI: Fix ComboBox not updating variable --- resources/wx_gui/gui_settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/wx_gui/gui_settings.py b/resources/wx_gui/gui_settings.py index a7ef5f53e..8b608eda1 100644 --- a/resources/wx_gui/gui_settings.py +++ b/resources/wx_gui/gui_settings.py @@ -178,6 +178,8 @@ class SettingsFrame(wx.Frame): # combobox.Bind(wx.EVT_COMBOBOX, lambda event, variable=setting: self.on_combobox(event, variable)) if "override_function" in setting_info: combobox.Bind(wx.EVT_COMBOBOX, lambda event, variable=setting: self.settings[tab][variable]["override_function"](event)) + else: + combobox.Bind(wx.EVT_COMBOBOX, lambda event, variable=setting: self.on_combobox(event, variable)) height += 10 elif setting_info["type"] == "button": button = wx.Button(panel, label=setting, pos=(width + 25, 10 + height), size = (200,-1))