From 69a3787076bdb836ca35afaba9dad56ae61db645 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Tue, 25 Nov 2025 18:49:19 +1000 Subject: [PATCH] update packages and fix warnings --- Directory.Packages.props | 8 ++++---- src/SharpIDE.Godot/Features/Nuget/NugetPanel.cs | 4 ++-- src/SharpIDE.Godot/Features/Nuget/PackageEntry.cs | 2 +- .../Features/SolutionExplorer/SolutionExplorerPanel.cs | 3 +-- src/SharpIDE.Photino/Components/Run/RunPanel.razor | 4 ++-- src/SharpIDE.Photino/Components/SolutionExplorer.razor | 1 - 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 5492b06..fc20bc3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -44,10 +44,10 @@ - - - - + + + + diff --git a/src/SharpIDE.Godot/Features/Nuget/NugetPanel.cs b/src/SharpIDE.Godot/Features/Nuget/NugetPanel.cs index 5d75387..6d94f2d 100644 --- a/src/SharpIDE.Godot/Features/Nuget/NugetPanel.cs +++ b/src/SharpIDE.Godot/Features/Nuget/NugetPanel.cs @@ -22,7 +22,7 @@ public partial class NugetPanel : Control private SharpIdeSolutionModel? _solution; [Inject] private readonly NugetClientService _nugetClientService = null!; - [Inject] private readonly SharpIdeSolutionAccessor _sharpIdeSolutionAccessor; + [Inject] private readonly SharpIdeSolutionAccessor _sharpIdeSolutionAccessor = null!; private readonly PackedScene _packageEntryScene = ResourceLoader.Load("uid://cqc2xlt81ju8s"); private readonly Texture2D _csprojIcon = ResourceLoader.Load("uid://cqt30ma6xgder"); @@ -59,7 +59,7 @@ public partial class NugetPanel : Control { foreach (var project in _projects.Skip(1)) { - _solutionOrProjectOptionButton.AddIconItem(_csprojIcon, project.Name); + _solutionOrProjectOptionButton.AddIconItem(_csprojIcon, project!.Name); } _solutionOrProjectOptionButton.ItemSelected += OnSolutionOrProjectSelected; }); diff --git a/src/SharpIDE.Godot/Features/Nuget/PackageEntry.cs b/src/SharpIDE.Godot/Features/Nuget/PackageEntry.cs index d9a4a40..0c20a5c 100644 --- a/src/SharpIDE.Godot/Features/Nuget/PackageEntry.cs +++ b/src/SharpIDE.Godot/Features/Nuget/PackageEntry.cs @@ -7,7 +7,7 @@ namespace SharpIDE.Godot.Features.Nuget; public partial class PackageEntry : MarginContainer { - private Button _button; + private Button _button = null!; private Label _packageNameLabel = null!; private Label _installedVersionLabel = null!; private Label _latestVersionLabel = null!; diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs index b5f74c0..2569267 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs @@ -32,8 +32,7 @@ public partial class SolutionExplorerPanel : MarginContainer public SharpIdeSolutionModel SolutionModel { get; set; } = null!; private Tree _tree = null!; private TreeItem _rootItem = null!; - - [Inject] private readonly IdeNavigationHistoryService _navigationHistoryService = null!; + private enum ClipboardOperation { Cut, Copy } private (List, ClipboardOperation)? _itemsOnClipboard; diff --git a/src/SharpIDE.Photino/Components/Run/RunPanel.razor b/src/SharpIDE.Photino/Components/Run/RunPanel.razor index ae62660..bd4f91b 100644 --- a/src/SharpIDE.Photino/Components/Run/RunPanel.razor +++ b/src/SharpIDE.Photino/Components/Run/RunPanel.razor @@ -69,8 +69,8 @@ public void Dispose() => GlobalEvents.Instance.ProjectsRunningChanged.Unsubscribe(OnProjectsRunningChanged); - private void SetActiveTab(SharpIdeProjectModel project) + private async Task SetActiveTab(SharpIdeProjectModel project) { - _mudTabsRef.ActivatePanel(project); + await _mudTabsRef.ActivatePanelAsync(project); } } diff --git a/src/SharpIDE.Photino/Components/SolutionExplorer.razor b/src/SharpIDE.Photino/Components/SolutionExplorer.razor index 2a09f9b..e6bd8a5 100644 --- a/src/SharpIDE.Photino/Components/SolutionExplorer.razor +++ b/src/SharpIDE.Photino/Components/SolutionExplorer.razor @@ -51,7 +51,6 @@ private MudMenu _contextMenuRef = null!; private SharpIdeProjectModel? _contextMenuProject; - private MudTreeView _treeViewRef = null!; private async Task OpenProjectContextMenu(MouseEventArgs args, SharpIdeProjectModel project) {