mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
GUI: Fix ComboBox not updating variable
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user