Permalink
Browse files

turn off web archive loading by default

… turns out to be a bit more tricky than expected
so we better have something that works by default.
  • Loading branch information...
1 parent 271dbb5 commit 53969b331d7e2254f96ca7a45a7c06918a5c144c @ssp committed Apr 8, 2011
Showing with 13 additions and 5 deletions.
  1. +10 −3 Readme.markdown
  2. +1 −0 delimport/DIFileController.h
  3. +2 −2 delimport/DIFileController.m
View
@@ -5,17 +5,24 @@ Originally developed by [Ian Henderson](http://ianhenderson.org/), with most cha
### History
<dl>
-<dt>current 2011-01</dt>
+<dt>upcoming</dt>
<dd>
<ul>
<li>
-Use Pinboard URLs.
-</li><li>
Save webarchives for the URLs.
<li>
</ul>
</dd>
+<dt>v0.5, 2011-04 [download](http://earthlingsoft.net/beta/delimport0.5.zip)</dt>
+<dd>
+<ul>
+<li>
+Use Pinboard URLs.
+</li>
+</ul>
+</dd>
+
<dt>v0.4, 2009-09</dt>
<dd>
<ul>
@@ -16,6 +16,7 @@
#define DITimeKey @"time"
#define DITagKey @"tag"
+#define DIDownloadWebarchivesKey @"download web archives"
#define DIDefaultsFAILKey @"failed web page downloads"
#define DIFAILStateNumberKey @"error code"
#define DIFAILDateKey @"date"
@@ -16,7 +16,6 @@
#define DINonHTTPResponseStatus 200 // dodgy?
-
@implementation DIFileController
- (id) init {
@@ -210,7 +209,8 @@ - (void) fetchWebArchiveForDictionary: (NSDictionary *) dictionary {
*/
- (void) saveNextWebArchive {
if (!running) {
- if ([bookmarksToLoad count] > 0) {
+ if ([bookmarksToLoad count] > 0 &&
+ [[[[NSUserDefaultsController sharedUserDefaultsController] values] valueForKey:DIDownloadWebarchivesKey] boolValue]) {
NSDictionary * dictionary = [bookmarksToLoad objectAtIndex: 0];
[self startSavingWebArchiveFor: dictionary];
}

0 comments on commit 53969b3

Please sign in to comment.