GUI: Allow users to view repo on updates

This commit is contained in:
Mykola Grymalyuk
2023-05-20 13:50:37 -06:00
parent cd9ce32c04
commit b56ec7c679
2 changed files with 8 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import wx
import logging
import plistlib
import subprocess
import webbrowser
from pathlib import Path
@@ -58,10 +59,12 @@ class AutomaticSysPatch:
caption="Update Available for OpenCore Legacy Patcher!",
style=wx.YES_NO | wx.CANCEL | wx.ICON_QUESTION
)
dialog.SetYesNoCancelLabels("Download and install", "Always Ignore", "Ignore Once")
dialog.SetYesNoCancelLabels("Download and install", "View on Github", "Ignore")
response = dialog.ShowModal()
if response == wx.ID_YES:
gui_entry.EntryPoint(self.constants).start(entry=gui_entry.SupportedEntryPoints.UPDATE_APP)
elif response == wx.ID_NO:
webbrowser.open(dict[key]["Github Link"])
return
if utilities.check_seal() is True: