This commit is contained in:
Mark Qvist 2022-10-08 23:35:22 +02:00
parent 19c3c7b562
commit f3107f4414
2 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,4 @@
# TODO: Reset
__debug_build__ = True
__debug_build__ = False
__disable_shaders__ = True
__version__ = "0.2.2"
__variant__ = "beta"

View File

@ -947,8 +947,6 @@ class SidebandCore():
time.sleep(SidebandCore.PERIODIC_JOBS_INTERVAL)
if self.config["lxmf_periodic_sync"] == True:
if self.getpersistent("lxmf.lastsync") == None:
# TODO: Remove
RNS.log("Lastsync was none, setting now as initial", RNS.LOG_DEBUG)
self.setpersistent("lxmf.lastsync", time.time())
else:
now = time.time()
@ -959,8 +957,6 @@ class SidebandCore():
RNS.log("Last sync was "+RNS.prettytime(now-lastsync)+" ago", RNS.LOG_DEBUG)
RNS.log("Next sync is "+("in "+RNS.prettytime(nextsync-now) if nextsync-now > 0 else "now"), RNS.LOG_DEBUG)
if now > nextsync:
# TODO: Remove
RNS.log("Syncing now...", RNS.LOG_DEBUG)
if self.request_lxmf_sync():
RNS.log("Scheduled LXMF sync succeeded", RNS.LOG_DEBUG)
self.setpersistent("lxmf.lastsync", time.time())