mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Cleanup
This commit is contained in:
parent
19c3c7b562
commit
f3107f4414
@ -1,5 +1,4 @@
|
|||||||
# TODO: Reset
|
__debug_build__ = False
|
||||||
__debug_build__ = True
|
|
||||||
__disable_shaders__ = True
|
__disable_shaders__ = True
|
||||||
__version__ = "0.2.2"
|
__version__ = "0.2.2"
|
||||||
__variant__ = "beta"
|
__variant__ = "beta"
|
||||||
|
@ -947,8 +947,6 @@ class SidebandCore():
|
|||||||
time.sleep(SidebandCore.PERIODIC_JOBS_INTERVAL)
|
time.sleep(SidebandCore.PERIODIC_JOBS_INTERVAL)
|
||||||
if self.config["lxmf_periodic_sync"] == True:
|
if self.config["lxmf_periodic_sync"] == True:
|
||||||
if self.getpersistent("lxmf.lastsync") == None:
|
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())
|
self.setpersistent("lxmf.lastsync", time.time())
|
||||||
else:
|
else:
|
||||||
now = time.time()
|
now = time.time()
|
||||||
@ -959,8 +957,6 @@ class SidebandCore():
|
|||||||
RNS.log("Last sync was "+RNS.prettytime(now-lastsync)+" ago", RNS.LOG_DEBUG)
|
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)
|
RNS.log("Next sync is "+("in "+RNS.prettytime(nextsync-now) if nextsync-now > 0 else "now"), RNS.LOG_DEBUG)
|
||||||
if now > nextsync:
|
if now > nextsync:
|
||||||
# TODO: Remove
|
|
||||||
RNS.log("Syncing now...", RNS.LOG_DEBUG)
|
|
||||||
if self.request_lxmf_sync():
|
if self.request_lxmf_sync():
|
||||||
RNS.log("Scheduled LXMF sync succeeded", RNS.LOG_DEBUG)
|
RNS.log("Scheduled LXMF sync succeeded", RNS.LOG_DEBUG)
|
||||||
self.setpersistent("lxmf.lastsync", time.time())
|
self.setpersistent("lxmf.lastsync", time.time())
|
||||||
|
Loading…
Reference in New Issue
Block a user