Exemple #1
0
 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()
Exemple #2
0
 def cancel(self):
     for x in self["config"].list:
         x[1].cancel()
     self.close()
     if self.kiddyTimerStopped:
         kiddyTimer.startTimer()