def save(self): if self.remainingTime > KTglob.getTodaysTimeInSeconds(): self.resetTimer() for x in self["config"].list: x[1].save() configfile.save() if config.plugins.KiddyTimer.enabled.value: kiddyTimer.startTimer() self.close()
def cancel(self): for x in self["config"].list: x[1].cancel() self.close() if self.kiddyTimerStopped: kiddyTimer.startTimer()