Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e5e051e8ecd692340874fdc1d2370e10d5eef426 1 parent 45b293e
Barijaona Ramaholimihaso barijaona authored
Showing with 4 additions and 0 deletions.
  1. +3 −0  GoogleReader.m
  2. +1 −0  SyncPreferences.m
3  GoogleReader.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;
1  SyncPreferences.m
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];
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.