diff --git a/legendary/utils/config.py b/legendary/utils/config.py index 6621141..5738a19 100644 --- a/legendary/utils/config.py +++ b/legendary/utils/config.py @@ -1,5 +1,6 @@ import configparser import os +import time class LGDConf(configparser.ConfigParser): @@ -16,6 +17,11 @@ class LGDConf(configparser.ConfigParser): return super().read(filename) + def write(self, *args, **kwargs): + self.modified = False + super().write(*args, **kwargs) + self.modtime = int(time.time()) + def set(self, *args, **kwargs): if self.read_only: return