Increment build

This commit is contained in:
Mykola Grymalyuk
2023-10-23 11:33:39 -06:00
parent 60f403d4b4
commit 1641e2522b
3 changed files with 11 additions and 6 deletions

View File

@@ -276,7 +276,7 @@ class MainFrame(wx.Frame):
def _check_for_updates(self):
if self.constants.has_checked_updates is True:
return
ignore_updates = global_settings.GlobalEnviromentSettings().read_property("IgnoreAppUpdates")
if ignore_updates is True:
self.constants.ignore_updates = True
@@ -290,7 +290,7 @@ class MainFrame(wx.Frame):
version = dict["Version"]
logging.info(f"New version: {version}")
wx.CallAfter(self.on_update, dict["Link"], version, dict["Github Link"])
def on_build_and_install(self, event: wx.Event = None):
@@ -366,9 +366,9 @@ class MainFrame(wx.Frame):
@media (prefers-color-scheme: dark) {
body {
color: #fff;
background-color: rgb(47,47,47);
background-color: rgb(47,47,47);
}
}
</style>
"""
@@ -408,7 +408,7 @@ class MainFrame(wx.Frame):
frame.Centre()
result = frame.ShowModal()
if result == ID_GITHUB:
webbrowser.open(oclp_github_url)
@@ -422,6 +422,8 @@ class MainFrame(wx.Frame):
version_label=oclp_version
)
frame.Destroy()
def _onWebviewNav(self, event):
url = event.GetURL()
webbrowser.open(url)