From aa994a97aa45d5cd2fd6c91da9161d95470b1d2e Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 8 Jun 2023 10:48:38 -0600 Subject: [PATCH] GUI: Avoid using print --- resources/wx_gui/gui_main_menu.py | 8 ++++---- resources/wx_gui/gui_settings.py | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/wx_gui/gui_main_menu.py b/resources/wx_gui/gui_main_menu.py index 07a5234ad..64103ba68 100644 --- a/resources/wx_gui/gui_main_menu.py +++ b/resources/wx_gui/gui_main_menu.py @@ -220,11 +220,11 @@ class MainFrame(wx.Frame): pop_up.ShowModal() if pop_up.GetReturnCode() != wx.ID_YES: - print("Skipping OpenCore and root volume patch update...") + logging.info("Skipping OpenCore and root volume patch update...") return - print("Updating OpenCore and root volume patches...") + logging.info("Updating OpenCore and root volume patches...") self.constants.update_stage = gui_support.AutoUpdateStages.CHECKING self.Hide() pos = self.GetPosition() @@ -257,13 +257,13 @@ class MainFrame(wx.Frame): # Delete app result = subprocess.run(["rm", "-rf", "/Applications/OpenCore-Patcher.app"], capture_output=True) if result.returncode != 0: - print("Failed to delete app from /Applications") + logging.info("Failed to delete app from /Applications") return # Create symlink result = subprocess.run(["ln", "-s", "/Library/Application Support/Dortania/OpenCore-Patcher.app", "/Applications/OpenCore-Patcher.app"], capture_output=True) if result.returncode != 0: - print("Failed to create symlink to /Applications") + logging.info("Failed to create symlink to /Applications") return diff --git a/resources/wx_gui/gui_settings.py b/resources/wx_gui/gui_settings.py index ad1b292cd..77613cf97 100644 --- a/resources/wx_gui/gui_settings.py +++ b/resources/wx_gui/gui_settings.py @@ -1030,7 +1030,6 @@ Hardware Information: event.GetEventObject().SetValue(not event.GetEventObject().GetValue()) return if override_function is True: - print("Override function") self.settings[self._find_parent_for_key(label)][label]["override_function"](self.settings[self._find_parent_for_key(label)][label]["variable"], value, self.settings[self._find_parent_for_key(label)][label]["constants_variable"] if "constants_variable" in self.settings[self._find_parent_for_key(label)][label] else None) return