mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
GUI Update: Break on error
This commit is contained in:
@@ -786,11 +786,14 @@ class SettingsFrame(wx.Frame):
|
|||||||
"Check CHANGELOG before blindly updating.",
|
"Check CHANGELOG before blindly updating.",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
"wrap_around 1": {
|
||||||
|
"type": "wrap_around",
|
||||||
|
},
|
||||||
"Export constants": {
|
"Export constants": {
|
||||||
"type": "button",
|
"type": "button",
|
||||||
"function": self.on_export_constants,
|
"function": self.on_export_constants,
|
||||||
"description": [
|
"description": [
|
||||||
"Export constants.py values to a plist file.",
|
"Export constants.py values to a txt file.",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -175,6 +175,8 @@ class UpdateFrame(wx.Frame):
|
|||||||
wx.CallAfter(self.progress_bar.SetValue, 0)
|
wx.CallAfter(self.progress_bar.SetValue, 0)
|
||||||
wx.CallAfter(wx.MessageBox, f"Failed to extract update. Error: {result.stderr.decode('utf-8')}", "Critical Error!", wx.OK | wx.ICON_ERROR)
|
wx.CallAfter(wx.MessageBox, f"Failed to extract update. Error: {result.stderr.decode('utf-8')}", "Critical Error!", wx.OK | wx.ICON_ERROR)
|
||||||
wx.CallAfter(sys.exit, 1)
|
wx.CallAfter(sys.exit, 1)
|
||||||
|
break
|
||||||
|
|
||||||
if Path(self.application_path).exists():
|
if Path(self.application_path).exists():
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -182,6 +184,7 @@ class UpdateFrame(wx.Frame):
|
|||||||
wx.CallAfter(self.progress_bar.SetValue, 0)
|
wx.CallAfter(self.progress_bar.SetValue, 0)
|
||||||
wx.CallAfter(wx.MessageBox, "Failed to extract update. Error: Update file does not exist", "Critical Error!", wx.OK | wx.ICON_ERROR)
|
wx.CallAfter(wx.MessageBox, "Failed to extract update. Error: Update file does not exist", "Critical Error!", wx.OK | wx.ICON_ERROR)
|
||||||
wx.CallAfter(sys.exit, 1)
|
wx.CallAfter(sys.exit, 1)
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
def _install_update(self) -> None:
|
def _install_update(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user