mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
gui_main.py: Add note when system already patched
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
- ex. Booting MacBookPro8,1 config on MacBookPro11,1
|
- ex. Booting MacBookPro8,1 config on MacBookPro11,1
|
||||||
- Add Checksum verification to InstallAssistant.pkg download
|
- Add Checksum verification to InstallAssistant.pkg download
|
||||||
- Fix showing latest 12.4 remote installers
|
- Fix showing latest 12.4 remote installers
|
||||||
|
- Add local Root Patcher version info when previously patched
|
||||||
|
- Helps notify users they already patched, or should be repatched with a newer version
|
||||||
- Add error handling to non-standard/malformed OpenCore Boot Path
|
- Add error handling to non-standard/malformed OpenCore Boot Path
|
||||||
- Non-Metal Enhancements:
|
- Non-Metal Enhancements:
|
||||||
- Add work-around to double clock bug introduced in macOS 12.4
|
- Add work-around to double clock bug introduced in macOS 12.4
|
||||||
|
|||||||
@@ -881,6 +881,36 @@ class wx_python_gui:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
i = i + self.patch_label.GetSize().height + 3
|
i = i + self.patch_label.GetSize().height + 3
|
||||||
|
else:
|
||||||
|
if self.constants.computer.oclp_sys_version and self.constants.computer.oclp_sys_date:
|
||||||
|
date = self.constants.computer.oclp_sys_date.split(" @")
|
||||||
|
if len(date) == 2:
|
||||||
|
date = date[0]
|
||||||
|
else:
|
||||||
|
date = ""
|
||||||
|
patch_text = f"{self.constants.computer.oclp_sys_version}, {date}"
|
||||||
|
|
||||||
|
self.patch_label = wx.StaticText(self.frame, label="Root Volume last patched:")
|
||||||
|
self.patch_label.SetFont(wx.Font(12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD))
|
||||||
|
self.patch_label.SetPosition(
|
||||||
|
wx.Point(
|
||||||
|
self.subheader.GetPosition().x,
|
||||||
|
self.subheader.GetPosition().y + self.subheader.GetSize().height + 3 + i
|
||||||
|
)
|
||||||
|
)
|
||||||
|
self.patch_label.Centre(wx.HORIZONTAL)
|
||||||
|
i = i + self.patch_label.GetSize().height + 3
|
||||||
|
|
||||||
|
self.patch_label = wx.StaticText(self.frame, label=patch_text)
|
||||||
|
self.patch_label.SetFont(wx.Font(12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
|
||||||
|
self.patch_label.SetPosition(
|
||||||
|
wx.Point(
|
||||||
|
self.subheader.GetPosition().x + 20,
|
||||||
|
self.subheader.GetPosition().y + self.subheader.GetSize().height + 3 + i
|
||||||
|
)
|
||||||
|
)
|
||||||
|
self.patch_label.Centre(wx.HORIZONTAL)
|
||||||
|
i = i + self.patch_label.GetSize().height + 3
|
||||||
else:
|
else:
|
||||||
# Prompt user with no patches found
|
# Prompt user with no patches found
|
||||||
self.patch_label = wx.StaticText(self.frame, label="No patches needed")
|
self.patch_label = wx.StaticText(self.frame, label="No patches needed")
|
||||||
|
|||||||
Reference in New Issue
Block a user