*/
@property NSInteger scrennshotEditorType;
+/**
+ * 古い履歴を削除する
+ */
+@property BOOL cleanOldHistoryItems;
+
+/**
+ * 削除を開始する経過日数
+ */
+@property NSInteger cleanSiceDays;
+
@end
@"fleetViewPosition" : @(1),
@"autoCombinedView" : @YES,
@"screenshotEditorColumnCount" : @2,
+
+ @"cleanSiceDays" : @90,
+
}
];
});
{
return [self boolForKey:@"useSwipeChangeCombinedView"];
}
+
+#pragma mark - Old History Item Clean
+- (void)setCleanOldHistoryItems:(BOOL)cleanOldHistoryItems
+{
+ [self setBool:cleanOldHistoryItems forKey:@"cleanOldHistoryItems"];
+}
+- (BOOL)cleanOldHistoryItems
+{
+ return [self boolForKey:@"cleanOldHistoryItems"];
+}
+- (void)setCleanSiceDays:(NSInteger)cleanSiceDays
+{
+ if(cleanSiceDays <= 0) return;
+ [self setInteger:cleanSiceDays forKey:@"cleanSiceDays"];
+}
+- (NSInteger)cleanSiceDays
+{
+ return [self integerForKey:@"cleanSiceDays"];
+}
@end