From 9d62d6fb61b4c2393470608f6861d0621ac02410 Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Sun, 26 Feb 2023 17:47:58 +0000 Subject: [PATCH] Backup alert! --- settings/oscalls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settings/oscalls.py b/settings/oscalls.py index 42341c6..47f40c6 100644 --- a/settings/oscalls.py +++ b/settings/oscalls.py @@ -3,6 +3,7 @@ import os import time +import json import datetime import platform from subprocess import * @@ -117,7 +118,7 @@ def file_open(win, path): # ( The backup script should check the blend-files each 30 # seconds. But could take another 30 actually backing them up ). - if time.time() + 60 > backup_lastcheck: + if time.time() - 60 > backup_lastcheck: # Blender takes time to load. So it's important to delay the # notification a little bit.