Skip to content

Commit

Permalink
Merge pull request #43 from NathanQuellec/fix-infobar
Browse files Browse the repository at this point in the history
add collection contains conditions
  • Loading branch information
NathanQuellec authored Jan 14, 2023
2 parents bd5070c + c9e78fa commit 52c00a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion WSLStudio/ViewModels/DistrosListDetailsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ private void RemoveDistributionViewModel(Distribution? distribution)
{
this._distributionService.RemoveDistribution(distribution);
this.Distros.Remove(distribution);
OpenInfoBar("RemoveDistroSuccess");

if (!Distros.Contains(distribution))
{
OpenInfoBar("RemoveDistroSuccess");
}

}
}

Expand Down

0 comments on commit 52c00a6

Please sign in to comment.