Restore application if an error occurs.
[enjoyable.git] / Classes / EnjoyableApplicationDelegate.m
index b45771b..f151399 100644 (file)
@@ -9,8 +9,6 @@
 
 #import "NJMapping.h"
 #import "NJMappingsController.h"
-#import "NJDeviceController.h"
-#import "NJOutputController.h"
 #import "NJEvents.h"
 
 @implementation EnjoyableApplicationDelegate {
                                                object:self];
 }
 
+- (void)applicationWillBecomeActive:(NSNotification *)notification {
+    [self restoreToForeground:notification];
+}
+
 - (void)transformIntoElement:(id)sender {
     ProcessSerialNumber psn = { 0, kCurrentProcess };
     TransformProcessType(&psn, kProcessTransformToUIElementApplication);