Skip to content

Commit 677262b

Browse files
committed
fix code styling
1 parent a91fffc commit 677262b

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/UniGetUI.Avalonia/Models/PackageCollections.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ private void UpdateDisplayState()
161161
string tagName = Package.Tag switch
162162
{
163163
PackageTag.AlreadyInstalled => "installed_filled",
164-
PackageTag.IsUpgradable => "upgradable_filled",
165-
PackageTag.Pinned => "pin_filled",
166-
PackageTag.OnQueue => "sandclock",
167-
PackageTag.BeingProcessed => "loading_filled",
168-
PackageTag.Failed => "warning_filled",
169-
_ => "",
164+
PackageTag.IsUpgradable => "upgradable_filled",
165+
PackageTag.Pinned => "pin_filled",
166+
PackageTag.OnQueue => "sandclock",
167+
PackageTag.BeingProcessed => "loading_filled",
168+
PackageTag.Failed => "warning_filled",
169+
_ => "",
170170
};
171171
TagIconVisible = tagName.Length > 0;
172172
TagIconPath = TagIconVisible

src/UniGetUI.Avalonia/Views/DialogPages/InstallOptionsWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public InstallOptionsWindow(IPackage package, OperationType operation, InstallOp
2323
protected override void OnOpened(EventArgs e)
2424
{
2525
base.OnOpened(e);
26-
Dispatcher.UIThread.Post(() => OptionsControl.FocusProfileSelector(), DispatcherPriority.Background);
26+
Dispatcher.UIThread.Post(OptionsControl.FocusProfileSelector, DispatcherPriority.Background);
2727
}
2828
}

src/UniGetUI.Avalonia/Views/SoftwarePages/AbstractPackagesPage.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public abstract partial class AbstractPackagesPage : UserControl,
2121
IKeyboardShortcutListener, IEnterLeaveListener, ISearchBoxPage
2222
{
2323
public PackagesPageViewModel ViewModel => (PackagesPageViewModel)DataContext!;
24-
private ContextMenu? _contextMenu;
24+
private readonly ContextMenu? _contextMenu;
2525
private double _savedFilterPaneWidth = 220;
2626
private bool _isOverlayMode;
2727

0 commit comments

Comments
 (0)