Skip to content

Commit

Permalink
Fix reversed check in AppDelegate.restoreRecentDocuments (#4820)
Browse files Browse the repository at this point in the history
This commit will correct the expression in the guard statement in
restoreRecentDocuments that checks if stale bookmarks were found.
  • Loading branch information
low-batt committed Feb 14, 2024
1 parent 8409492 commit 9d8cd41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iina/AppDelegate.swift
Expand Up @@ -1017,7 +1017,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, SPUUpdaterDelegate {
NSDocumentController.shared.noteNewRecentDocumentURL(bookmark)
}
Logger.log("Restored list of recent documents")
guard !foundStale else { return }
guard foundStale else { return }
Logger.log("Found stale bookmarks in saved recent documents")
// Save the recent documents in order to refresh stale bookmarks.
saveRecentDocuments()
Expand Down

0 comments on commit 9d8cd41

Please sign in to comment.