|
|
@ -128,14 +128,16 @@ public class InstallerViewModel : INotifyPropertyChanged |
|
|
|
if (settingsManager.Settings.InstalledPackages.FirstOrDefault(x => x.PackageName == SelectedPackage.Name) == |
|
|
|
if (settingsManager.Settings.InstalledPackages.FirstOrDefault(x => x.PackageName == SelectedPackage.Name) == |
|
|
|
null) |
|
|
|
null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
settingsManager.AddInstalledPackage(new InstalledPackage |
|
|
|
var package = new InstalledPackage |
|
|
|
{ |
|
|
|
{ |
|
|
|
Name = SelectedPackage.Name, |
|
|
|
Name = SelectedPackage.Name, |
|
|
|
Path = SelectedPackage.InstallLocation, |
|
|
|
Path = SelectedPackage.InstallLocation, |
|
|
|
Id = Guid.NewGuid(), |
|
|
|
Id = Guid.NewGuid(), |
|
|
|
PackageName = SelectedPackage.Name, |
|
|
|
PackageName = SelectedPackage.Name, |
|
|
|
PackageVersion = "idklol" |
|
|
|
PackageVersion = "idklol" |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
settingsManager.AddInstalledPackage(package); |
|
|
|
|
|
|
|
settingsManager.SetActiveInstalledPackage(package); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|