From b74001a6e5543dc1e20edcf855251cb6510d39ef Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 3 Sep 2024 20:33:38 -0600 Subject: [PATCH] wx_gui: Handle spacing --- opencore_legacy_patcher/wx_gui/gui_sys_patch_display.py | 2 +- opencore_legacy_patcher/wx_gui/gui_sys_patch_start.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opencore_legacy_patcher/wx_gui/gui_sys_patch_display.py b/opencore_legacy_patcher/wx_gui/gui_sys_patch_display.py index 3ff88efdf..009946e6f 100644 --- a/opencore_legacy_patcher/wx_gui/gui_sys_patch_display.py +++ b/opencore_legacy_patcher/wx_gui/gui_sys_patch_display.py @@ -321,7 +321,7 @@ class SysPatchDisplayFrame(wx.Frame): if (not patch.startswith("Settings") and not patch.startswith("Validation") and patches[patch] is True): # Patches should share the same name as the plist key # See sys_patch/patchsets/base.py for more info - if patch.split(":")[1] not in oclp_plist_data: + if patch.split(": ")[1] not in oclp_plist_data: logging.info(f"- Patch {patch} not installed") return True diff --git a/opencore_legacy_patcher/wx_gui/gui_sys_patch_start.py b/opencore_legacy_patcher/wx_gui/gui_sys_patch_start.py index 6bc78d3e7..75d1695ea 100644 --- a/opencore_legacy_patcher/wx_gui/gui_sys_patch_start.py +++ b/opencore_legacy_patcher/wx_gui/gui_sys_patch_start.py @@ -460,7 +460,7 @@ class SysPatchStartFrame(wx.Frame): if (not patch.startswith("Settings") and not patch.startswith("Validation") and patches[patch] is True): # Patches should share the same name as the plist key # See sys_patch/patchsets/base.py for more info - if patch.split(":")[1] not in oclp_plist_data: + if patch.split(": ")[1] not in oclp_plist_data: logging.info(f"- Patch {patch} not installed") return True