From 794a6e8c99be447b2ebc2b5510f7bf8ddeb4d75d Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 21 Mar 2013 16:53:30 +0100 Subject: [PATCH] Remove login item prompts, going back on this idea. --- Classes/EnjoyableApplicationDelegate.m | 41 -------------------- Info.plist | 2 +- Resources/English.lproj/Localizable.strings | Bin 7516 -> 6420 bytes 3 files changed, 1 insertion(+), 42 deletions(-) diff --git a/Classes/EnjoyableApplicationDelegate.m b/Classes/EnjoyableApplicationDelegate.m index b21ee77..76f99e0 100644 --- a/Classes/EnjoyableApplicationDelegate.m +++ b/Classes/EnjoyableApplicationDelegate.m @@ -201,47 +201,6 @@ [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" ]; diff --git a/Info.plist b/Info.plist index 4c6333a..3f58f54 100644 --- a/Info.plist +++ b/Info.plist @@ -46,7 +46,7 @@ CFBundleSignature ???? CFBundleVersion - 578 + 579 LSApplicationCategoryType public.app-category.utilities NSHumanReadableCopyright diff --git a/Resources/English.lproj/Localizable.strings b/Resources/English.lproj/Localizable.strings index 0e30ce1842093ae8662c75ed023e88a319e3faa0..74b94c503c08829d6397d2b87ccd98e1e91918fe 100644 GIT binary patch delta 16 Ycmca(HN|K{l-T4QEFzn?NiAan06atnivR!s delta 1039 zcmbu8&q~8U5XJ{Vl-})mi3g#Gg5DJAMQ`3bh@yuiO|{adC7V)v$}>oP5W#~-UqtX# z`kQT*rVte@%l@0)nfYeso7bbSlegPu5lUYY$s`veBle*T*!9-soUw<}Ve}-G2W~l1 zgU*nf$_#6cg@IVkEjg5i1V6r4Jp}wen|(Jn+gDf!OAHs-e8Tz^N#w8@naCp^)Yp`k zG5f;5`c9=i+uGhG4n?^xK5r$$OYUM#i3Xg^K&m)HUX5J(JU9#~H*cD0wN&<2 zEY{;XU;HfG*Coh6PANu%lC&HsLqaoBmQY&5`b?qwfK8b>a&>1|_4PjmE|dZFW|uj< zrk1_3uCa4t(do!Ox^=bhIbMYlGZM}gZO@Bt$=8w>g`=w_7L8}@6eG@=9ANy0$do#< zi&%kb+}@OCLFuDJw-tFEB>&e!OeKFzNQMSD4oT<;k#>s3=^ZDXTAw9%Ck}w}1b)1H m?zk50Lv4f7?~Sl%xZJga|GgUNpUnb|tE?DE@_yg^*q8&MguCSc -- 2.30.2