Merge pull request #540 from Arfs6/stop_update_running_source

stop updating while running from source
This commit is contained in:
2023-10-10 16:50:11 -06:00
committed by GitHub
3 changed files with 14 additions and 0 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()