mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
GUI: Adjust default selection to latest non-Beta
This commit is contained in:
@@ -151,10 +151,14 @@ class macOSInstallerDownloadFrame(wx.Frame):
|
|||||||
installer_button.Centre(wx.HORIZONTAL)
|
installer_button.Centre(wx.HORIZONTAL)
|
||||||
spacer += 25
|
spacer += 25
|
||||||
|
|
||||||
# Since installers are sorted by version, set the latest installer as the default button
|
# Since installers are sorted by version, set the latest installer as the default button
|
||||||
# Note that on full display, the last installer is generally a beta
|
# Note that on full display, the last installer is generally a beta
|
||||||
if show_full is False and app == list(installers.keys())[-1]:
|
for button in reversed(dialog.GetChildren()):
|
||||||
installer_button.SetDefault()
|
if not isinstance(button, wx.Button):
|
||||||
|
continue
|
||||||
|
if "Beta" not in button.GetLabel():
|
||||||
|
button.SetDefault()
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
logging.error("No installers found on SUCatalog")
|
logging.error("No installers found on SUCatalog")
|
||||||
installer_button = wx.StaticText(dialog, label="Failed to fetch catalog from Apple", pos=(-1, subtitle_label.GetPosition()[1] + subtitle_label.GetSize()[1] + 5))
|
installer_button = wx.StaticText(dialog, label="Failed to fetch catalog from Apple", pos=(-1, subtitle_label.GetPosition()[1] + subtitle_label.GetSize()[1] + 5))
|
||||||
|
|||||||
Reference in New Issue
Block a user