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:
parent
63406703aa
commit
9e45290c47
|
@ -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"];
|
||||
|
|
Loading…
Reference in New Issue