From 466bd075d9b9da440240a02ef82ce39253fb4220 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Wed, 13 Mar 2013 19:06:45 +0100 Subject: [PATCH] UI element applications don't restore correctly, this needs more work/testing. --- Classes/EnjoyableApplicationDelegate.m | 9 +-------- Info.plist | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) 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 -- 2.30.2