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()
def on_about(self, *args, **kwargs):
channel = self.session.settings["general"]["update_channel"]
self.window.about_dialog(channel)
self.window.about_dialog()
def search_audios(self, *args, **kwargs):
dlg = searchDialogs.searchAudioDialog()

View File

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