diff --git a/CHANGELOG.md b/CHANGELOG.md index 41d74461c..3442d59de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ - ex. Booting MacBookPro8,1 config on MacBookPro11,1 - Add Checksum verification to InstallAssistant.pkg download - 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 - Non-Metal Enhancements: - Add work-around to double clock bug introduced in macOS 12.4 diff --git a/gui/gui_main.py b/gui/gui_main.py index 5dc558f31..8366bbde9 100644 --- a/gui/gui_main.py +++ b/gui/gui_main.py @@ -881,6 +881,36 @@ class wx_python_gui: ) ) 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: # Prompt user with no patches found self.patch_label = wx.StaticText(self.frame, label="No patches needed")