hide ram menu when no machine available.

This commit is contained in:
Kelvin Sherlock 2020-08-29 17:08:51 -04:00
parent 26c6dcdbe5
commit 03797486cc
2 changed files with 12 additions and 3 deletions

View File

@ -31,7 +31,15 @@
<gridView autoresizesSubviews="NO" xPlacement="leading" yPlacement="bottom" rowAlignment="none" translatesAutoresizingMaskIntoConstraints="NO" id="OM3-7F-wiN">
<rect key="frame" x="0.0" y="0.0" width="306" height="534"/>
<rows>
<gridRow yPlacement="center" height="30" id="tHD-ui-hIL"/>
<gridRow yPlacement="center" height="30" id="tHD-ui-hIL">
<connections>
<binding destination="-2" name="hidden" keyPath="machine.ram" id="ze9-jx-lv0">
<dictionary key="options">
<string key="NSValueTransformerName">NSIsNil</string>
</dictionary>
</binding>
</connections>
</gridRow>
<gridRow yPlacement="center" height="30" id="Ccd-U2-Gx5">
<connections>
<binding destination="-2" name="hidden" keyPath="machine.sl0" id="YsR-kI-yrh">

View File

@ -68,7 +68,7 @@ const unsigned kMemoryMask = 1 << 16;
-(void)resetMachine {
[self setMachine: @{}];
#if 0
[self setSl0: @""];
[self setSl1: @""];
[self setSl2: @""];
@ -87,10 +87,11 @@ const unsigned kMemoryMask = 1 << 16;
[self setMemory: @""];
[self setMemoryBytes: 0];
#endif
[self setResolution: NSMakeSize(0, 0)];
_slots_default = 0;
_slots_explicit = 0;
//_slots_explicit = 0;
_slots_valid = 0;
_machine_media = nil;