From 3a56f13480c0be694fadd4005ad0cae59e2b7747 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 13 Nov 2022 15:35:00 -0700 Subject: [PATCH] gui: publish version in UI header --- CHANGELOG.md | 2 ++ gui/gui_main.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2189629b5..c3540ebd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ - Alleviates Notification Centre Crashing - Work-around MacPro6,1 and Lilu race condition - Ensure Model and Board ID are set correctly before Lilu loads +- Publish Application Version in UI header + - Allows for easier identification of version when reporting issues - Increment Binaries: - AirPortBrcmFixup 2.1.6 - release - AppleALC 1.7.6 - release diff --git a/gui/gui_main.py b/gui/gui_main.py index c350a3a65..afa99feeb 100644 --- a/gui/gui_main.py +++ b/gui/gui_main.py @@ -53,7 +53,7 @@ class wx_python_gui: self.app = wx.App() if frame is None: self.frame = wx.Frame( - None, title="OpenCore Legacy Patcher", + None, title=f"OpenCore Legacy Patcher ({self.constants.patcher_version})", size=(self.WINDOW_WIDTH_MAIN, self.WINDOW_HEIGHT_MAIN), style = wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX) ) @@ -347,7 +347,7 @@ class wx_python_gui: self.reset_window() # Set header text - self.frame.SetTitle(f"OpenCore Legacy Patcher") + self.frame.SetTitle(f"OpenCore Legacy Patcher ({self.constants.patcher_version})") # Header self.header = wx.StaticText(self.frame, label=f"OpenCore Legacy Patcher v{self.constants.patcher_version}") self.header.SetFont(wx.Font(18, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD))