diff options
author | Teddy Wing | 2016-12-01 13:51:58 -0500 |
---|---|---|
committer | Teddy Wing | 2016-12-01 13:51:58 -0500 |
commit | 319dd672e1c75f39bcb9239117e520513da6609a (patch) | |
tree | 94b8d3645da2dde37b240918ce1d3ccffce186d7 | |
parent | dcad77919ff5d188daf1bf07e545d3703811b4dd (diff) | |
download | Low-Battery-Yup-319dd672e1c75f39bcb9239117e520513da6609a.tar.bz2 |
AppDelegate.m: Move ShortcutView initialization into its own method
Keep the code more organised by defining a name for this functionality
since we want to add some additional code here to handle the "Start at
login" checkbox.
-rw-r--r-- | Low Battery Yup/AppDelegate.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Low Battery Yup/AppDelegate.m b/Low Battery Yup/AppDelegate.m index 83d03ae..1c77f41 100644 --- a/Low Battery Yup/AppDelegate.m +++ b/Low Battery Yup/AppDelegate.m @@ -18,6 +18,11 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { + [self initializeShortcutView]; +} + +- (void)initializeShortcutView +{ NSDictionary *saved_shortcut; if ((saved_shortcut = [[NSUserDefaults standardUserDefaults] objectForKey:kPreferenceGlobalShortcut])) { MASShortcut *shortcut = [MASShortcut |