diff --git a/BasiliskII/src/iOS/BasiliskII/B2AppDelegate.mm b/BasiliskII/src/iOS/BasiliskII/B2AppDelegate.mm index a12ab5394..92e2847d2 100644 --- a/BasiliskII/src/iOS/BasiliskII/B2AppDelegate.mm +++ b/BasiliskII/src/iOS/BasiliskII/B2AppDelegate.mm @@ -89,9 +89,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( // populate documents directory so it shows up in Files [[NSFileManager defaultManager] createDirectoryAtPath:self.userKeyboardLayoutsPath withIntermediateDirectories:YES attributes:nil error:nil]; - // show preferences - [self.window.rootViewController performSelector:@selector(showSettings:) withObject:self afterDelay:0.0]; - return YES; } @@ -111,6 +108,11 @@ - (void)applicationWillEnterForeground:(UIApplication *)application { - (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + + // Show settings if emulator is not running + if (self.emulatorRunning == NO && self.window.rootViewController.presentedViewController == nil) { + [self.window.rootViewController performSelector:@selector(showSettings:) withObject:self afterDelay:0.0]; + } } - (void)applicationWillTerminate:(UIApplication *)application {