Skip to content

Commit

Permalink
Async code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineatstariongroup committed Dec 5, 2024
1 parent 314d399 commit a5a8f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EA-ModelKit/ViewModels/Exporter/GenericExporterViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/// <summary>
/// Proceed with the export functionalitis following the user-defined setup
/// </summary>
private async Task OnExport()
private async Task OnExportAsync()
{
this.IsBusy = true;

Expand Down

0 comments on commit a5a8f17

Please sign in to comment.