diff --git a/Mini vMac/SettingsViewController.m b/Mini vMac/SettingsViewController.m index 04d0976..7a92369 100644 --- a/Mini vMac/SettingsViewController.m +++ b/Mini vMac/SettingsViewController.m @@ -23,6 +23,16 @@ keyboardLayouts = [[NSBundle mainBundle] pathsForResourcesOfType:@"nfkeyboardlayout" inDirectory:@"Keyboard Layouts"]; } +- (void)viewDidAppear:(BOOL)animated { + [super viewDidAppear:animated]; + [AppDelegate sharedInstance].emulatorRunning = NO; +} + +- (void)viewWillDisappear:(BOOL)animated { + [super viewWillDisappear:animated]; + [AppDelegate sharedInstance].emulatorRunning = YES; +} + - (void)showInsertDisk:(id)sender { [[AppDelegate sharedInstance] showInsertDisk:sender]; }