UI element applications don't restore correctly, this needs more work/testing.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 13 Mar 2013 18:06:45 +0000 (19:06 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 13 Mar 2013 18:06:45 +0000 (19:06 +0100)
Classes/EnjoyableApplicationDelegate.m
Info.plist

index f02ec90663ba6e4d29a7db97076b4f6f38e85d9f..411067e74d351bb3d55ec96a5bd5161a375174b2 100644 (file)
 }
 
 - (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
index 6191eaa683e4b81058945c92fa509de238ec0b8b..2b34274a79d46aa15212c3fbc7845c30f4c51c57 100644 (file)
@@ -46,7 +46,7 @@
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
-       <string>258</string>
+       <string>259</string>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>NSHumanReadableCopyright</key>