From 9d8cd418d877d06d09766595afbb020f41d5ce7f Mon Sep 17 00:00:00 2001 From: low-batt <86170219+low-batt@users.noreply.github.com> Date: Wed, 14 Feb 2024 16:42:06 -0500 Subject: [PATCH] Fix reversed check in AppDelegate.restoreRecentDocuments (#4820) This commit will correct the expression in the guard statement in restoreRecentDocuments that checks if stale bookmarks were found. --- iina/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iina/AppDelegate.swift b/iina/AppDelegate.swift index 36592980b2..a8db9828e6 100644 --- a/iina/AppDelegate.swift +++ b/iina/AppDelegate.swift @@ -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()