Browse Source

Merge branch 'launcher-output' of https://github.com/ionite34/StabilityMatrix into launcher-output

pull/5/head
Ionite 2 years ago
parent
commit
d2188c4e9c
No known key found for this signature in database
  1. 12
      StabilityMatrix/ViewModels/LaunchViewModel.cs

12
StabilityMatrix/ViewModels/LaunchViewModel.cs

@ -46,18 +46,6 @@ public partial class LaunchViewModel : ObservableObject
public LaunchViewModel(ISettingsManager settingsManager)
{
this.settingsManager = settingsManager;
Packages.CollectionChanged += PackagesOnCollectionChanged;
}
private void PackagesOnCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action != NotifyCollectionChangedAction.Add) return;
var newPackage = e.NewItems?.Cast<InstalledPackage>().FirstOrDefault();
if (newPackage != null)
{
settingsManager.AddInstalledPackage(newPackage);
}
}
public AsyncRelayCommand LaunchCommand => new(async () =>

Loading…
Cancel
Save