diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-12-19 19:09:47 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2019-12-19 19:10:41 +0300 |
commit | 0c110f8eda47c73f9f94556a272aea976e3058ef (patch) | |
tree | db90eb216e24a47710102c82fd1f02c6581d35a5 /main/src | |
parent | bd4a8aeda591da3b13e382ccd3861d2b2580a987 (diff) |
[NuGet] Native project selection dialog
Fixes VSTS #1021688
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs index 7934c29f42..f4266e4ee3 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs @@ -747,14 +747,17 @@ namespace MonoDevelop.PackageManagement GetPackagesCountForAddPackagesButtonLabel (), viewModel.PageSelected); - using (var dialog = new SelectProjectsDialog (selectProjectsViewModel)) { - Command result = dialog.ShowWithParent (); - if (result == Command.Ok) { - return dialog.GetSelectedProjects (); - } else { - return Enumerable.Empty<IDotNetProject> (); + return Toolkit.NativeEngine.Invoke (() => { + using (var dialog = new SelectProjectsDialog (selectProjectsViewModel)) { + Command result = dialog.Run (this); + if (result == Command.Ok) { + return dialog.GetSelectedProjects (); + } else { + return Enumerable.Empty<IDotNetProject> (); + } } - } + }); + } /// <summary> |