Skip to content

Commit bfd48fc

Browse files
committed
Hotfix on closing download dialog
1 parent 9716be2 commit bfd48fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RailworksDownloader/DownloadDialog.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ internal void UpdatePackages(Dictionary<int, int> update, List<Package> installe
9696
}
9797
}
9898

99-
App.DialogQueue.RemoveDialog(this);
99+
Dispatcher.Invoke(() => App.DialogQueue.RemoveDialog(this));
100100
}
101101

102102
internal void DownloadPackages(HashSet<int> download, List<Package> cached, List<Package> installedPackages, WebWrapper wrapper, SqLiteAdapter sqLiteAdapter)
@@ -170,7 +170,7 @@ internal void DownloadPackages(HashSet<int> download, List<Package> cached, List
170170
}
171171
}
172172

173-
App.DialogQueue.RemoveDialog(this);
173+
Dispatcher.Invoke(() => App.DialogQueue.RemoveDialog(this));
174174
}
175175

176176
internal void DownloadUpdateAsync(Updater updater)

0 commit comments

Comments
 (0)