Skip to content

Commit

Permalink
(#494) Don't trigger SourcesUpdated messages
Browse files Browse the repository at this point in the history
With the FileSystemWatcher, we don't need to manually tell Chocolatey
GUI to update the sources, as they'll be updated by the
FileSystemWatcher. Leaving them in results in duplicated entries that we
don't want.
  • Loading branch information
corbob committed Sep 2, 2022
1 parent 1d690a1 commit dcb3405
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 dcb3405

Please sign in to comment.