Skip to content

Commit

Permalink
Clear Viewers list in view model on disconnect/reconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Mar 23, 2020
1 parent 51080c4 commit 3b5aec5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Desktop.Win/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public async Task Init()
{
await App.Current.Dispatcher.InvokeAsync(() =>
{
Viewers.Clear();
SessionID = "Disconnected";
});
};
Expand All @@ -196,6 +197,7 @@ public async Task Init()
{
await App.Current.Dispatcher.InvokeAsync(() =>
{
Viewers.Clear();
SessionID = "Reconnecting";
});
};
Expand Down

0 comments on commit 3b5aec5

Please sign in to comment.