mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-31 04:31:54 +00:00 
			
		
		
		
	Updated importer and exporter to include new defaults
This commit is contained in:
		| @@ -15,7 +15,11 @@ final class HistorySettingsGroupExporter: SettingsGroupExporter { | ||||
|  | ||||
|             "watchedVideoStyle": Defaults[.watchedVideoStyle].rawValue, | ||||
|             "watchedVideoBadgeColor": Defaults[.watchedVideoBadgeColor].rawValue, | ||||
|             "showToggleWatchedStatusButton": Defaults[.showToggleWatchedStatusButton] | ||||
|             "showToggleWatchedStatusButton": Defaults[.showToggleWatchedStatusButton], | ||||
|  | ||||
|             "showRecents": Defaults[.showRecents], | ||||
|             "limitRecents": Defaults[.limitRecents], | ||||
|             "limitRecentsAmount": Defaults[.limitRecentsAmount] | ||||
|         ] | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -50,5 +50,17 @@ struct HistorySettingsGroupImporter { | ||||
|         if let showToggleWatchedStatusButton = json["showToggleWatchedStatusButton"].bool { | ||||
|             Defaults[.showToggleWatchedStatusButton] = showToggleWatchedStatusButton | ||||
|         } | ||||
|  | ||||
|         if let showRecents = json["showRecents"].bool { | ||||
|             Defaults[.showRecents] = showRecents | ||||
|         } | ||||
|  | ||||
|         if let limitRecents = json["limitRecents"].bool { | ||||
|             Defaults[.limitRecents] = limitRecents | ||||
|         } | ||||
|  | ||||
|         if let limitRecentsAmount = json["limitRecentsAmount"].int { | ||||
|             Defaults[.limitRecentsAmount] = limitRecentsAmount | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ricky Kresslein
					Ricky Kresslein