Last active
December 24, 2015 22:49
-
-
Save bjhomer/6875232 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)shouldShowMenuIcon | |
{ | |
return [AgentManager sharedManager].shouldShowInMenuBar; | |
} | |
- (void)setShouldShowMenuIcon:(BOOL)enabled | |
{ | |
AgentManager *manager = [AgentManager sharedManager]; | |
manager.shouldLaunchAtStartup = enabled; | |
manager.shouldShowInMenuBar = enabled; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)shouldShowMenuIcon | |
{ | |
return [[NSUserDefaults standardUserDefaults] boolForKey:kPrefAgentEnabledKey]; | |
} | |
- (void)setShouldShowMenuIcon:(BOOL)enabled | |
{ | |
[NSUserDefaults standardUserDefaults] setBool:enabled forKey:kPrefAgentEnabledKey]; | |
[AgentManager refreshAgentStatus];; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment