Improve WatchProperty

This commit is contained in:
tyrrrz
2026-04-03 00:13:40 +03:00
parent 1f189e5206
commit 295f4cf9a2
4 changed files with 11 additions and 17 deletions

View File

@@ -53,14 +53,14 @@ public partial class DashboardViewModel : ViewModelBase
_eventRoot.Add(
Progress.WatchProperty(
o => o.Current,
() => OnPropertyChanged(nameof(IsProgressIndeterminate))
_ => OnPropertyChanged(nameof(IsProgressIndeterminate))
)
);
_eventRoot.Add(
SelectedChannels.WatchProperty(
o => o.Count,
() => ExportCommand.NotifyCanExecuteChanged()
_ => ExportCommand.NotifyCanExecuteChanged()
)
);
}