mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 22:00:00 +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))
|
# combobox.Bind(wx.EVT_COMBOBOX, lambda event, variable=setting: self.on_combobox(event, variable))
|
||||||
if "override_function" in setting_info:
|
if "override_function" in setting_info:
|
||||||
combobox.Bind(wx.EVT_COMBOBOX, lambda event, variable=setting: self.settings[tab][variable]["override_function"](event))
|
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
|
height += 10
|
||||||
elif setting_info["type"] == "button":
|
elif setting_info["type"] == "button":
|
||||||
button = wx.Button(panel, label=setting, pos=(width + 25, 10 + height), size = (200,-1))
|
button = wx.Button(panel, label=setting, pos=(width + 25, 10 + height), size = (200,-1))
|
||||||
|
|||||||
Reference in New Issue
Block a user