Clear Viewers list in view model on disconnect/reconnect.

This commit is contained in:
Jared Goodwin 2020-03-23 10:20:24 -07:00
parent 51080c4344
commit 3b5aec55ac

View File

@ -188,6 +188,7 @@ namespace Remotely.Desktop.Win.ViewModels
{
await App.Current.Dispatcher.InvokeAsync(() =>
{
Viewers.Clear();
SessionID = "Disconnected";
});
};
@ -196,6 +197,7 @@ namespace Remotely.Desktop.Win.ViewModels
{
await App.Current.Dispatcher.InvokeAsync(() =>
{
Viewers.Clear();
SessionID = "Reconnecting";
});
};