From: Joe Wreschnig Date: Wed, 13 Mar 2013 18:06:45 +0000 (+0100) Subject: UI element applications don't restore correctly, this needs more work/testing. X-Git-Tag: version-1.1~31 X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=commitdiff_plain;h=466bd075d9b9da440240a02ef82ce39253fb4220 UI element applications don't restore correctly, this needs more work/testing. --- diff --git a/Classes/EnjoyableApplicationDelegate.m b/Classes/EnjoyableApplicationDelegate.m index f02ec90..411067e 100644 --- a/Classes/EnjoyableApplicationDelegate.m +++ b/Classes/EnjoyableApplicationDelegate.m @@ -48,14 +48,7 @@ } - (void)applicationDidFinishLaunching:(NSNotification *)notification { - if (NSRunningApplication.currentApplication.wasLaunchedAsLoginItemOrResume - && [NSUserDefaults.standardUserDefaults boolForKey:@"hidden in status item"]) { - [self transformIntoElement:self]; - NSApplication *app = notification.object; - [app deactivate]; - } else { - [window makeKeyAndOrderFront:nil]; - } + [window makeKeyAndOrderFront:nil]; } - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication diff --git a/Info.plist b/Info.plist index 6191eaa..2b34274 100644 --- a/Info.plist +++ b/Info.plist @@ -46,7 +46,7 @@ CFBundleSignature ???? CFBundleVersion - 258 + 259 LSApplicationCategoryType public.app-category.utilities NSHumanReadableCopyright