Skip to content

Commit

Permalink
Don't Refresh sources list on save or remove, that'll be done by the …
Browse files Browse the repository at this point in the history
…file watcher
  • Loading branch information
corbob committed Sep 2, 2022
1 parent bd8ea19 commit ca20e8d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ public async Task Save()
}

_originalId = DraftSource?.Id;
await _eventAggregator.PublishOnUIThreadAsync(new SourcesUpdatedMessage());
}
catch (UnauthorizedAccessException)
{
Expand Down Expand Up @@ -486,7 +485,6 @@ public async Task Remove()
await _chocolateyService.RemoveSource(_originalId);
Sources.Remove(SelectedSource);
SelectedSource = null;
await _eventAggregator.PublishOnUIThreadAsync(new SourcesUpdatedMessage());
}
catch (UnauthorizedAccessException)
{
Expand Down

0 comments on commit ca20e8d

Please sign in to comment.