Fixed About Dialog

This commit is contained in:
Manuel Cortez 2021-09-27 10:22:02 -05:00
parent 35c1a754f3
commit e56ec19421
2 changed files with 3 additions and 7 deletions

View File

@ -712,8 +712,7 @@ class Controller(object):
commonMessages.no_update_available() commonMessages.no_update_available()
def on_about(self, *args, **kwargs): def on_about(self, *args, **kwargs):
channel = self.session.settings["general"]["update_channel"] self.window.about_dialog()
self.window.about_dialog(channel)
def search_audios(self, *args, **kwargs): def search_audios(self, *args, **kwargs):
dlg = searchDialogs.searchAudioDialog() dlg = searchDialogs.searchAudioDialog()

View File

@ -137,11 +137,8 @@ class mainWindow(wx.Frame):
def advance_selection(self, forward): def advance_selection(self, forward):
self.tb.AdvanceSelection(forward) self.tb.AdvanceSelection(forward)
def about_dialog(self, channel="stable", *args, **kwargs): def about_dialog(self, *args, **kwargs):
if channel == "stable": version = application.version
version = _("{version} (stable)").format(version=application.version)
else:
version = _("{version} (alpha)").format(version=application.update_next_version)
info = wx.adv.AboutDialogInfo() info = wx.adv.AboutDialogInfo()
info.SetName(application.name) info.SetName(application.name)
info.SetVersion(version) info.SetVersion(version)