Skip to content

Commit dcb3405

Browse files
committed
(#494) Don't trigger SourcesUpdated messages
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.
1 parent 1d690a1 commit dcb3405

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Source/ChocolateyGui.Common.Windows/ViewModels/SettingsViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ public async Task Save()
453453
}
454454

455455
_originalId = DraftSource?.Id;
456-
await _eventAggregator.PublishOnUIThreadAsync(new SourcesUpdatedMessage());
457456
}
458457
catch (UnauthorizedAccessException)
459458
{
@@ -486,7 +485,6 @@ public async Task Remove()
486485
await _chocolateyService.RemoveSource(_originalId);
487486
Sources.Remove(SelectedSource);
488487
SelectedSource = null;
489-
await _eventAggregator.PublishOnUIThreadAsync(new SourcesUpdatedMessage());
490488
}
491489
catch (UnauthorizedAccessException)
492490
{

0 commit comments

Comments
 (0)