Skip to content

Commit

Permalink
Update selected files for download
Browse files Browse the repository at this point in the history
  • Loading branch information
dagolav committed Jun 6, 2019
1 parent 9eca8d2 commit 7037e49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
Expand Down Expand Up @@ -110,8 +110,10 @@ private void OnChanged(object source, FileSystemEventArgs e)
try
{
_selectedFilesForDownload = _datasetService.GetSelectedFilesToDownloadAsViewModel();
Dispatcher.BeginInvoke(
new System.Threading.ThreadStart(() => LbSelectedFilesForDownload.ItemsSource = _selectedFilesForDownload));
Dispatcher.Invoke(() =>
{
LbSelectedFilesForDownload.ItemsSource = _selectedFilesForDownload;
});

}
catch (Exception err)
Expand Down

0 comments on commit 7037e49

Please sign in to comment.