fix updating while running from source if user checks for update from menu

This commit is contained in:
Abdulqadir Ahmad
2023-06-03 00:39:42 +01:00
parent 288286f21e
commit f9b54ede81
4 changed files with 15 additions and 1 deletions

View File

@@ -38,3 +38,9 @@ def invalid_configuration():
def dead_pid():
return wx.MessageDialog(None, _(u"{0} quit unexpectedly the last time it was run. If the problem persists, please report it to the {0} developers.").format(application.name), _(u"Warning"), wx.OK).ShowModal()
def cant_update_source() -> wx.MessageDialog:
"""Shows a dialog telling a user he /she can't update because he / she is
running from source
"""
dlg = wx.MessageDialog(None, _("Sorry, you can't update while running {} from source.").format(application.name), _("Error"), wx.OK)
return dlg.ShowModal()