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

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import logging
import webbrowser
import wx
@@ -429,6 +430,10 @@ class Controller(object):
return handler.account_settings(buffer=buffer, controller=self)
def check_for_updates(self, *args, **kwargs):
if not getattr(sys, 'frozen', False):
log.debug("Running from source, can't update")
commonMessageDialogs.cant_update_source()
return
update = updater.do_update()
if update == False:
view.no_update_available()