Quick fix for error when opening history window

This commit is contained in:
anthony 2022-03-07 09:35:47 +00:00
parent b97d9b699b
commit 74a18293e4
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@
HISTORY_PATH];
NSError *error = nil;
NSPredicate *historyPredicate = [NSPredicate predicateWithFormat:
@"self beginswith 'history_'"];
@"count >= 8 AND self beginswith 'history_'"];
NSMutableArray *files = [[[NSFileManager defaultManager] contentsOfDirectoryAtPath:
path error: &error] mutableCopy];
if (error != nil) {