Permalink
Browse files

Avoid the Google authentication window if we only have local feeds.

  • Loading branch information...
1 parent 45b293e commit e5e051e8ecd692340874fdc1d2370e10d5eef426 @barijaona barijaona committed Apr 15, 2012
Showing with 4 additions and 0 deletions.
  1. +3 −0 GoogleReader.m
  2. +1 −0 SyncPreferences.m
View
@@ -30,6 +30,7 @@
#import "Message.h"
#import "AppController.h"
#import "RefreshManager.h"
+#import "Preferences.h"
//Vienna keychain Google Reader name
static NSString *const kKeychainItemName = @"OAuth2 Vienna: Google Reader";
@@ -452,6 +453,8 @@ -(void)handleGoogleLoginRequest
-(void)authenticate
{
+ if (![[Preferences standardPreferences] syncGoogleReader])
+ return;
if (googleReaderStatus != notAuthenticated) {
LLog(@"Another instance is authenticating...");
return;
View
@@ -46,6 +46,7 @@ -(IBAction)changeSyncGoogleReader:(id)sender
BOOL sync = [sender state] == NSOnState;
[[Preferences standardPreferences] setSyncGoogleReader:sync];
if (sync) {
+ [[GoogleReader sharedManager] authenticate];
[[GoogleReader sharedManager] loadSubscriptions:nil];
}
}

0 comments on commit e5e051e

Please sign in to comment.