Revision: 14671
          http://sourceforge.net/p/skim-app/code/14671
Author:   hofman
Date:     2024-11-11 15:20:00 +0000 (Mon, 11 Nov 2024)
Log Message:
-----------
make sure flag to reset document info is reset after saving

Modified Paths:
--------------
    trunk/NSDocument_SKExtensions.m
    trunk/SKNotesDocument.m

Modified: trunk/NSDocument_SKExtensions.m
===================================================================
--- trunk/NSDocument_SKExtensions.m     2024-11-11 14:58:05 UTC (rev 14670)
+++ trunk/NSDocument_SKExtensions.m     2024-11-11 15:20:00 UTC (rev 14671)
@@ -95,12 +95,8 @@
 
 #pragma mark Document Setup
 
-- (void)saveRecentDocumentInfo:(BOOL)forced {
-    if (forced)
-        [[SKBookmarkController sharedBookmarkController] 
addRecentDocument:self];
+- (void)saveRecentDocumentInfo:(BOOL)forced {}
 
-}
-
 - (void)applySetup:(NSDictionary *)setup {}
 
 - (void)applyOptions:(NSDictionary *)options {}

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2024-11-11 14:58:05 UTC (rev 14670)
+++ trunk/SKNotesDocument.m     2024-11-11 15:20:00 UTC (rev 14671)
@@ -429,7 +429,10 @@
 }
 
 - (void)saveRecentDocumentInfo:(BOOL)forced {
-    [super saveRecentDocumentInfo:forced || ndFlags.recentInfoNeedsUpdate];
+    if (forced || ndFlags.recentInfoNeedsUpdate) {
+        if ([[SKBookmarkController sharedBookmarkController] 
addRecentDocument:self])
+            ndFlags.recentInfoNeedsUpdate = NO;
+    }
 }
 
 - (void)setFileURL:(NSURL *)absoluteURL {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to