Ram Watch - only show the Read/Write breakpoints context menu items if the selected address(es) are on the system bus, and only show if all the criteria to use them are available rather than showing and disabling them.
This commit is contained in:
parent
db372b993e
commit
8a4e33981c
|
@ -1053,11 +1053,13 @@ namespace BizHawk.Client.EmuHawk
|
|||
MoveDownContextMenuItem.Visible =
|
||||
indexes.Count > 0;
|
||||
|
||||
ReadBreakpointContextMenuItem.Enabled =
|
||||
WriteBreakpointContextMenuItem.Enabled =
|
||||
SelectedWatches.Any() &&
|
||||
_debuggable != null &&
|
||||
_debuggable.MemoryCallbacksAvailable();
|
||||
ReadBreakpointContextMenuItem.Visible =
|
||||
WriteBreakpointContextMenuItem.Visible =
|
||||
Separator6.Visible =
|
||||
SelectedWatches.Any() &&
|
||||
_debuggable != null &&
|
||||
_debuggable.MemoryCallbacksAvailable() &&
|
||||
SelectedWatches.All(w => w.Domain.Name == (_memoryDomains != null ? _memoryDomains.SystemBus.Name : ""));
|
||||
|
||||
PokeContextMenuItem.Enabled =
|
||||
FreezeContextMenuItem.Visible =
|
||||
|
|
Loading…
Reference in New Issue