Skip to content

Commit 54830cd

Browse files
Fix Avalonia generator hooks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 814ccaf commit 54830cd

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/UniGetUI.Avalonia/ViewModels/DialogPages/InstallOptionsViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ partial void OnSelectedProfileChanged(string? value)
137137
[ObservableProperty] private string _paramsUpdate = "";
138138
[ObservableProperty] private string _paramsUninstall = "";
139139

140-
partial void OnParamsInstallChanged(string _) => Refresh();
141-
partial void OnParamsUpdateChanged(string _) => Refresh();
142-
partial void OnParamsUninstallChanged(string _) => Refresh();
140+
partial void OnParamsInstallChanged(string value) => Refresh();
141+
partial void OnParamsUpdateChanged(string value) => Refresh();
142+
partial void OnParamsUninstallChanged(string value) => Refresh();
143143

144144
// ── Pre/Post commands tab ─────────────────────────────────────────────────
145145
[ObservableProperty] private string _preInstallText = "";

src/UniGetUI.Avalonia/ViewModels/Pages/SettingsPages/InstallOptionsPanelViewModel.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ public partial class InstallOptionsPanelViewModel : ViewModelBase
9797
partial void OnLocationSelectEnabledChanged(bool value) => OnPropertyChanged(nameof(LocationOpacity));
9898

9999
// Mark HasChanges when user edits options (guards against firing during load)
100-
partial void OnAdminCheckedChanged(bool _) => HasChanges = !IsLoading;
101-
partial void OnInteractiveCheckedChanged(bool _) => HasChanges = !IsLoading;
102-
partial void OnSkipHashCheckedChanged(bool _) => HasChanges = !IsLoading;
103-
partial void OnPreReleaseCheckedChanged(bool _) => HasChanges = !IsLoading;
104-
partial void OnUninstallPreviousCheckedChanged(bool _) => HasChanges = !IsLoading;
105-
partial void OnSelectedArchitectureChanged(string? _) => HasChanges = !IsLoading;
106-
partial void OnSelectedScopeChanged(string? _) => HasChanges = !IsLoading;
100+
partial void OnAdminCheckedChanged(bool value) => HasChanges = !IsLoading;
101+
partial void OnInteractiveCheckedChanged(bool value) => HasChanges = !IsLoading;
102+
partial void OnSkipHashCheckedChanged(bool value) => HasChanges = !IsLoading;
103+
partial void OnPreReleaseCheckedChanged(bool value) => HasChanges = !IsLoading;
104+
partial void OnUninstallPreviousCheckedChanged(bool value) => HasChanges = !IsLoading;
105+
partial void OnSelectedArchitectureChanged(string? value) => HasChanges = !IsLoading;
106+
partial void OnSelectedScopeChanged(string? value) => HasChanges = !IsLoading;
107107

108108
public InstallOptionsPanelViewModel(IPackageManager manager)
109109
{

src/UniGetUI.Avalonia/ViewModels/SoftwarePages/PackagesPageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public bool IsExpanded
9191
public partial class PackagesPageViewModel : ViewModelBase
9292
{
9393
public double FilterPaneColumnWidth => IsFilterPaneOpen ? 220.0 : 0.0;
94-
partial void OnIsFilterPaneOpenChanged(bool _) => OnPropertyChanged(nameof(FilterPaneColumnWidth));
94+
partial void OnIsFilterPaneOpenChanged(bool value) => OnPropertyChanged(nameof(FilterPaneColumnWidth));
9595

9696
// ─── Static config (set once in constructor) ──────────────────────────────
9797
public readonly string PageName;

0 commit comments

Comments
 (0)