From 47458daae2a7aa9f120a9b327fbaac0b0830353c Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 18 May 2023 14:18:14 -0600 Subject: [PATCH] Settings: Default to binary source --- resources/wx_gui/gui_settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/wx_gui/gui_settings.py b/resources/wx_gui/gui_settings.py index b820bcbde..600696ac9 100644 --- a/resources/wx_gui/gui_settings.py +++ b/resources/wx_gui/gui_settings.py @@ -1188,6 +1188,8 @@ Hardware Information: def on_nightly(self, event: wx.Event) -> None: # Ask prompt for which branch branches = ["main"] + if self.constants.commit_info[0] not in ["Running from source", "Built from source"]: + branches = [self.constants.commit_info[0].split("/")[-1]] result = network_handler.NetworkUtilities().get("https://api.github.com/repos/dortania/OpenCore-Legacy-Patcher/branches") if result is not None: result = result.json()