Fix ToolManager Has<T> function to check if a tool is disposed not just if it is in the tool list
This commit is contained in:
parent
538c4632af
commit
56442d9f8d
|
@ -57,7 +57,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Has<T>() where T : IToolForm
|
public bool Has<T>() where T : IToolForm
|
||||||
{
|
{
|
||||||
return _tools.Any(x => x is T);
|
return _tools.Any(x => x is T && !x.IsDisposed);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue