update packages and fix warnings
This commit is contained in:
@@ -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<PackedScene>("uid://cqc2xlt81ju8s");
|
||||
private readonly Texture2D _csprojIcon = ResourceLoader.Load<Texture2D>("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;
|
||||
});
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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<IFileOrFolder>, ClipboardOperation)? _itemsOnClipboard;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
|
||||
private MudMenu _contextMenuRef = null!;
|
||||
private SharpIdeProjectModel? _contextMenuProject;
|
||||
private MudTreeView<ISharpIdeNode> _treeViewRef = null!;
|
||||
|
||||
private async Task OpenProjectContextMenu(MouseEventArgs args, SharpIdeProjectModel project)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user