From: Greg Darke Date: Thu, 16 Oct 2008 23:10:11 +0000 (+1100) Subject: Store the cache after any change (so if the program crashes/is terminated you don... X-Git-Url: https://code.delx.au/bg-scripts/commitdiff_plain/a415e01036e62536e92ae0a93e13d137d83fa2c6 Store the cache after any change (so if the program crashes/is terminated you don't lose your place) --- diff --git a/randombg.py b/randombg.py index 0bc4b79..360c096 100755 --- a/randombg.py +++ b/randombg.py @@ -293,6 +293,7 @@ class Cycler(object): self.task.cancel() self.task = asyncsched.schedule(self.cycle_time, next) logging.debug("Reset timer for %s seconds" % self.cycle_time) + self.filelist.store_cache(self.history_filename) def cmd_reload(self): image = self.filelist.get_current_image()