Revision: 29541
http://sourceforge.net/p/bibdesk/svn/29541
Author: hofman
Date: 2025-09-07 17:17:18 +0000 (Sun, 07 Sep 2025)
Log Message:
-----------
simplify condition
Modified Paths:
--------------
trunk/bibdesk/BDSKDownloadManager.m
Modified: trunk/bibdesk/BDSKDownloadManager.m
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.m 2025-09-07 17:14:21 UTC (rev 29540)
+++ trunk/bibdesk/BDSKDownloadManager.m 2025-09-07 17:17:18 UTC (rev 29541)
@@ -215,8 +215,7 @@
[webDownload setStatus:error ? BDSKDownloadStatusFailed :
BDSKDownloadStatusFinished];
- if ((error && [[NSUserDefaults standardUserDefaults]
boolForKey:BDSKRemoveFailedDownloadsKey]) ||
- (error == nil && [[NSUserDefaults standardUserDefaults]
boolForKey:BDSKRemoveFinishedDownloadsKey]))
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:(error ?
BDSKRemoveFailedDownloadsKey : BDSKRemoveFinishedDownloadsKey)])
[downloads removeObject:webDownload];
[self notifyUpdate];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit