Stop any playing preview when closing the direct overlay

Resolves #1925
This commit is contained in:
Dean Herbert 2018-01-18 17:28:56 +09:00
parent 95a1556376
commit 7ceed8b5eb
1 changed files with 8 additions and 0 deletions

View File

@ -313,6 +313,14 @@ private void updateSearch()
api.Queue(getSetsRequest);
}
protected override void PopOut()
{
base.PopOut();
if (playing != null)
playing.PreviewPlaying.Value = false;
}
private int distinctCount(List<string> list) => list.Distinct().ToArray().Length;
public class ResultCounts