mirror of
				https://github.com/robweber/xbmcbackup.git
				synced 2025-11-03 19:02:14 +01:00 
			
		
		
		
	add notification when schedule changes
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
Version 0.3.9
 | 
			
		||||
 | 
			
		||||
added "just today" scheduler for one-off type backups
 | 
			
		||||
added "just once" scheduler for one-off type backups
 | 
			
		||||
show notification on scheduler update
 | 
			
		||||
 | 
			
		||||
Version 0.3.8
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -70,5 +70,6 @@
 | 
			
		||||
    <string id="30076">Shutdown After Backup</string>
 | 
			
		||||
	<string id="30077">Restart XBMC</string>
 | 
			
		||||
	<string id="30078">You should restart XBMC to continue</string>
 | 
			
		||||
	<string id="30079">Just Today</string>
 | 
			
		||||
	<string id="30079">Just Once</string>
 | 
			
		||||
	<string id="30080">Scheduler will run again on</string>
 | 
			
		||||
</strings>
 | 
			
		||||
 
 | 
			
		||||
@@ -78,7 +78,7 @@ class BackupScheduler:
 | 
			
		||||
 | 
			
		||||
        if(new_run_time != self.next_run):
 | 
			
		||||
            self.next_run = new_run_time
 | 
			
		||||
            #utils.showNotification("Scheduler will run again on " + datetime.datetime.fromtimestamp(self.next_run).strftime('%m-%d-%Y %H:%M')")
 | 
			
		||||
            utils.showNotification(utils.getString(30080) + " " + datetime.datetime.fromtimestamp(self.next_run).strftime('%m-%d-%Y %H:%M'))
 | 
			
		||||
            utils.log("scheduler will run again on " + datetime.datetime.fromtimestamp(self.next_run).strftime('%m-%d-%Y %H:%M'))
 | 
			
		||||
                
 | 
			
		||||
    def settingsChanged(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user