Restore application if an error occurs.
[enjoyable.git] / Classes / EnjoyableApplicationDelegate.m
index 6ccfc0f..f151399 100644 (file)
                                                object:self];
 }
 
+- (void)applicationWillBecomeActive:(NSNotification *)notification {
+    [self restoreToForeground:notification];
+}
+
 - (void)transformIntoElement:(id)sender {
     ProcessSerialNumber psn = { 0, kCurrentProcess };
     TransformProcessType(&psn, kProcessTransformToUIElementApplication);