Skip to content

Commit

Permalink
Fix logic of test for changed information for tidy object dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Oct 31, 2024
1 parent 349dc21 commit 3879f8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-10-31 Richard Frith-Macdonald <rfm@gnu.org>

* Source/GSServicesManager.m: fix -laterDate: conditionals to be true
only when file date has been updated (returned value != receiver).

2024-10-29 Fred Kiefer <FredKiefer@gmx.de>

* Headers/AppKit/NSLayoutAnchor.h: Add missing include that is required after a change in base.
Expand Down
6 changes: 4 additions & 2 deletions Source/GSServicesManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,8 @@ - (void) loadServices
attr = [mgr fileAttributesAtPath: _disabledPath
traverseLink: YES];
mod = [attr objectForKey: NSFileModificationDate];
if (_disabledStamp == nil || [_disabledStamp laterDate: mod] == mod)
if (_disabledStamp == nil
|| [_disabledStamp laterDate: mod] != _disabledStamp)
{
NSData *data;
id plist = nil;
Expand Down Expand Up @@ -895,7 +896,8 @@ - (void) loadServices
attr = [mgr fileAttributesAtPath: _servicesPath
traverseLink: YES];
mod = [attr objectForKey: NSFileModificationDate];
if (_servicesStamp == nil || [_servicesStamp laterDate: mod] == mod)
if (_servicesStamp == nil
|| [_servicesStamp laterDate: mod] != _servicesStamp)
{
NSData *data;
id plist = nil;
Expand Down

0 comments on commit 3879f8e

Please sign in to comment.