Ram Watch - don't refresh dialog if no addresses (keeps the dialog from slowing the emulator down when it has no watches)

This commit is contained in:
adelikat 2013-09-19 13:53:38 +00:00
parent a40bda3263
commit 3857c27f93
1 changed files with 24 additions and 19 deletions

View File

@ -53,6 +53,9 @@ namespace BizHawk.MultiClient
{ {
return; return;
} }
if (Watches.Any())
{
Watches.UpdateValues(); Watches.UpdateValues();
if (Global.Config.DisplayRamWatch) if (Global.Config.DisplayRamWatch)
@ -72,12 +75,14 @@ namespace BizHawk.MultiClient
} }
} }
if (!IsHandleCreated || IsDisposed) return; if (!IsHandleCreated || IsDisposed) return;
WatchListView.BlazingFast = true; WatchListView.BlazingFast = true;
WatchListView.Refresh(); WatchListView.Refresh();
WatchListView.BlazingFast = false; WatchListView.BlazingFast = false;
} }
}
public void Restart() public void Restart()
{ {