diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-07 13:14:48 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-07 13:14:48 +0200 |
| commit | 0f26c5c3b3e606c89724067d4785323de3fee751 (patch) | |
| tree | 00ccd17d4776b639b383f1b086dd39ac4dbbf1b9 /QSDeliciousPlugIn_Source.m | |
| parent | a081f7ea92f32b8284cce4d11f8e899b08754acf (diff) | |
Autosave on change
Diffstat (limited to 'QSDeliciousPlugIn_Source.m')
| -rw-r--r-- | QSDeliciousPlugIn_Source.m | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/QSDeliciousPlugIn_Source.m b/QSDeliciousPlugIn_Source.m index ab8c1f1..fb09a97 100644 --- a/QSDeliciousPlugIn_Source.m +++ b/QSDeliciousPlugIn_Source.m @@ -12,10 +12,6 @@ @implementation QSDeliciousPlugIn_Source -+ (void)initialize { - [self setKeys:[NSArray arrayWithObject:@"selection"] triggerChangeNotificationsForDependentKey:@"currentPassword"]; -} - - (BOOL)indexIsValidFromDate:(NSDate *)indexDate forEntry:(NSDictionary *)theEntry { return -[indexDate timeIntervalSinceNow] < 24 * 60 * 60; } @@ -59,6 +55,11 @@ return [[self.selectedEntry.sourceSettings objectForKey:@"includeTags"] boolValue]; } + +- (IBAction)settingsChanged:(id)sender { + [[NSNotificationCenter defaultCenter] postNotificationName:QSCatalogEntryChangedNotification object:self.selectedEntry]; +} + #pragma mark - Keychain Access - (SecProtocolType)protocolTypeForString:(NSString *)protocol { @@ -206,8 +207,6 @@ - (NSArray *)objectsForEntry:(NSDictionary *)theEntry { NSLog(@"WE HAVE BEEN REQUESTED"); - [[NSNotificationCenter defaultCenter] postNotificationName:QSCatalogEntryChangedNotification object:theEntry]; - SocialSite site = [self siteIndex]; NSString *username = [self currentUsername]; NSString *password = [self currentPassword]; |