From a5a8f179c6919197e99e8df384bd36161509cf0f Mon Sep 17 00:00:00 2001 From: antoineatstariongroup Date: Thu, 5 Dec 2024 14:55:23 +0100 Subject: [PATCH] Async code smell --- EA-ModelKit/ViewModels/Exporter/GenericExporterViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EA-ModelKit/ViewModels/Exporter/GenericExporterViewModel.cs b/EA-ModelKit/ViewModels/Exporter/GenericExporterViewModel.cs index 5c0383b..38c0bf2 100644 --- a/EA-ModelKit/ViewModels/Exporter/GenericExporterViewModel.cs +++ b/EA-ModelKit/ViewModels/Exporter/GenericExporterViewModel.cs @@ -162,13 +162,13 @@ private void InitializeObservablesAndCommands() .Subscribe(_ => this.ComputeCanProceed())); this.Disposables.Add(this.WhenPropertyChanged(x => x.SelectedFilePath).Subscribe(_ => this.ComputeCanProceed())); - this.ExportCommand = ReactiveCommand.CreateFromTask(this.OnExport, this.WhenAnyValue(x => x.CanProceed)); + this.ExportCommand = ReactiveCommand.CreateFromTask(this.OnExportAsync, this.WhenAnyValue(x => x.CanProceed)); } /// /// Proceed with the export functionalitis following the user-defined setup /// - private async Task OnExport() + private async Task OnExportAsync() { this.IsBusy = true;