This commit is contained in:
Matt Parker
2025-11-02 23:44:08 +10:00
parent 9db774eb56
commit 5b965991cd

View File

@@ -35,13 +35,22 @@ public partial class NugetPanel : Control
_implicitlyInstalledPackagesItemList.QueueFreeChildren(); _implicitlyInstalledPackagesItemList.QueueFreeChildren();
_availablePackagesItemList.QueueFreeChildren(); _availablePackagesItemList.QueueFreeChildren();
_solutionOrProjectOptionButton.ItemSelected += OnSolutionOrProjectSelected;
OnSolutionOrProjectSelected(0);
}
private void OnSolutionOrProjectSelected(long index)
{
_ = Task.GodotRun(async () => _ = Task.GodotRun(async () =>
{ {
await Task.Delay(300); await Task.Delay(300);
foreach (var project in Solution!.AllProjects) await this.InvokeAsync(() =>
{ {
_solutionOrProjectOptionButton.AddIconItem(_csprojIcon, project.Name); foreach (var project in Solution!.AllProjects)
} {
_solutionOrProjectOptionButton.AddIconItem(_csprojIcon, project.Name);
}
});
var result = await _nugetClientService.GetTop100Results(Solution!.DirectoryPath); var result = await _nugetClientService.GetTop100Results(Solution!.DirectoryPath);
_ = Task.GodotRun(async () => _ = Task.GodotRun(async () =>