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:
adelikat 2015-07-21 22:30:38 -04:00
parent db372b993e
commit 8a4e33981c
1 changed files with 7 additions and 5 deletions

View File

@ -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 =