Cocoa Port:

- Fix bug where the "Automatically load this ROM on startup" pop-up menu wouldn't update properly if the same option is chosen.
This commit is contained in:
rogerman 2013-11-20 22:59:37 +00:00
parent 63406703aa
commit 9e45290c47
1 changed files with 5 additions and 0 deletions

View File

@ -187,6 +187,11 @@
{
[sheet orderOut:self];
// Temporarily set the autoload ROM option in user defaults to some neutral value first and synchronize.
// When the user defaults are actually set later, this will force the proper state transitions to occur.
[[NSUserDefaults standardUserDefaults] setInteger:ROMAUTOLOADOPTION_CHOOSE_ROM forKey:@"General_AutoloadROMOption"];
[[NSUserDefaults standardUserDefaults] synchronize];
if (returnCode == NSCancelButton)
{
[[NSUserDefaults standardUserDefaults] setInteger:ROMAUTOLOADOPTION_LOAD_NONE forKey:@"General_AutoloadROMOption"];