reset more things when no default.

This commit is contained in:
Kelvin Sherlock 2021-06-12 16:03:55 -04:00
parent 0381037356
commit 33d6c651d0
2 changed files with 8 additions and 0 deletions

View File

@ -489,6 +489,11 @@ DQ
</searchFieldCell> </searchFieldCell>
<connections> <connections>
<action selector="softwareChanged:" target="-2" id="879-da-UEc"/> <action selector="softwareChanged:" target="-2" id="879-da-UEc"/>
<binding destination="-2" name="hidden" keyPath="machine" id="RdE-9k-oFd">
<dictionary key="options">
<string key="NSValueTransformerName">NSIsNil</string>
</dictionary>
</binding>
</connections> </connections>
</searchField> </searchField>
<customView id="oVt-eD-aaj" customClass="FlippedView"> <customView id="oVt-eD-aaj" customClass="FlippedView">

View File

@ -162,6 +162,8 @@ static int EffectsIndex(NSString *str) {
[self setMameShareDirectory: NO]; [self setMameShareDirectory: NO];
[self setSoftware: nil]; [self setSoftware: nil];
_softwareSet = nil;
[_softwareListControl setObjectValue: nil];
} }
-(void)windowWillLoad { -(void)windowWillLoad {
@ -681,6 +683,7 @@ static NSString *ShellQuote(NSString *s) {
NSDictionary *d = [bm loadDefault]; NSDictionary *d = [bm loadDefault];
if (!d) { if (!d) {
[self reset: sender]; [self reset: sender];
[_slotController setMachine: nil];
return; return;
} }
[self loadBookmark: d]; [self loadBookmark: d];