mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-17 21:56:07 -04:00
fix updating while running from source if user checks for update from menu
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
import webbrowser
|
||||
import wx
|
||||
@@ -427,6 +428,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()
|
||||
|
Reference in New Issue
Block a user