Remove login item prompts, going back on this idea.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 21 Mar 2013 15:53:30 +0000 (16:53 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 21 Mar 2013 15:53:30 +0000 (16:53 +0100)
Classes/EnjoyableApplicationDelegate.m
Info.plist
Resources/English.lproj/Localizable.strings

index b21ee77ec4fff58d8ad699b2a26b0ecd86f33e5c..76f99e041bc28eba558258578fa99306783b00f2 100644 (file)
     [self.mvc mappingTriggerClicked:self];
 }
 
-- (void)loginItemPromptDidEnd:(NSWindow *)sheet
-                   returnCode:(int)returnCode
-                  contextInfo:(void *)contextInfo {
-    if (returnCode == NSAlertDefaultReturn) {
-        [NSRunningApplication.currentApplication addToLoginItems];
-        // If we're going to automatically start, don't bug the user
-        // about automatic updates next boot - they probably want it,
-        // and if they don't they probably want a prompt for it less.
-        SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
-    }
-}
-
-- (void)loginItemPromptDidDismiss:(NSWindow *)sheet
-                       returnCode:(int)returnCode
-                      contextInfo:(void *)contextInfo {
-    [NSUserDefaults.standardUserDefaults setBool:YES forKey:@"explained login items"];
-    [self.window performClose:sheet];
-}
-
-- (BOOL)windowShouldClose:(NSWindow *)sender {
-    if (sender != self.window
-        || NSRunningApplication.currentApplication.isLoginItem
-        || [NSUserDefaults.standardUserDefaults boolForKey:@"explained login items"])
-        return YES;
-    NSBeginAlertSheet(
-        NSLocalizedString(@"login items prompt", @"alert prompt for adding to login items"),
-        NSLocalizedString(@"login items add button", @"button to add to login items"),
-        NSLocalizedString(@"login items don't add button", @"button to not add to login items"),
-        nil, self.window, self,
-        @selector(loginItemPromptDidEnd:returnCode:contextInfo:),
-        @selector(loginItemPromptDidDismiss:returnCode:contextInfo:),
-        NULL,
-        NSLocalizedString(@"login items explanation", @"a brief explanation of login items")
-        );
-    for (int i = 0; i < 10; ++i)
-        [self performSelector:@selector(flashStatusItem)
-                   withObject:self
-                   afterDelay:0.5 * i];
-    return NO;
-}
-
 - (void)importMappingClicked:(id)sender {
     NSOpenPanel *panel = [NSOpenPanel openPanel];
     panel.allowedFileTypes = @[ @"enjoyable", @"json", @"txt" ];
index 4c6333a98b4a281fe819dcf1cee9e3de4b10c37c..3f58f546f80f69b07e24c4179c1986a1e7b7eb63 100644 (file)
@@ -46,7 +46,7 @@
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
-       <string>578</string>
+       <string>579</string>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>NSHumanReadableCopyright</key>
index 0e30ce1842093ae8662c75ed023e88a319e3faa0..74b94c503c08829d6397d2b87ccd98e1e91918fe 100644 (file)
Binary files a/Resources/English.lproj/Localizable.strings and b/Resources/English.lproj/Localizable.strings differ