Cocoa port now shows the open dialog if no ROM is open.

This commit is contained in:
Lior Halphon 2016-09-10 19:46:42 +03:00
parent 95cfb114a2
commit 6e86dbcebb
1 changed files with 8 additions and 0 deletions

View File

@ -52,4 +52,12 @@
}
[_preferencesWindow makeKeyAndOrderFront:self];
}
- (void)applicationDidBecomeActive:(NSNotification *)notification
{
NSDocumentController *controller = [NSDocumentController sharedDocumentController];
if (![[controller documents] count]) {
[[NSDocumentController sharedDocumentController] openDocument:self];
}
}
@end