don't check for updates in background blender

pull/258/head
Joe Marshall 2024-01-26 20:04:01 +00:00 zatwierdzone przez GitHub
rodzic 30c1d8641e
commit f9aa9d40d9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -18,7 +18,10 @@ class UpdateChecker(bpy.types.Operator):
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
last_update_check = bpy.context.preferences.addons['cam'].preferences.last_update_check
if bpy.app.background:
return {"FINISHED"}
last_update_check = bpy.context.preferences.addons['cam'].preferences.last_update_check
today=date.today().toordinal()
update_source = bpy.context.preferences.addons['cam'].preferences.update_source
match = re.match(r"https://github.com/([^/]+/[^/]+)",update_source)