UI element applications don't restore correctly, this needs more work/testing.
[enjoyable.git] / Classes / EnjoyableApplicationDelegate.m
index f02ec90..411067e 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