From 0f26c5c3b3e606c89724067d4785323de3fee751 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 7 Sep 2025 13:14:48 +0200 Subject: Autosave on change --- QSDeliciousPlugIn_Source.m | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'QSDeliciousPlugIn_Source.m') 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]; -- cgit