aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-12-01 13:51:58 -0500
committerTeddy Wing2016-12-01 13:51:58 -0500
commit319dd672e1c75f39bcb9239117e520513da6609a (patch)
tree94b8d3645da2dde37b240918ce1d3ccffce186d7
parentdcad77919ff5d188daf1bf07e545d3703811b4dd (diff)
downloadLow-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.m5
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