Browse Source

fix showing dummy values on last package uninstall

pull/5/head
JT 1 year ago
parent
commit
0fd25a38f8
  1. 6
      StabilityMatrix/ViewModels/PackageManagerViewModel.cs

6
StabilityMatrix/ViewModels/PackageManagerViewModel.cs

@ -91,6 +91,12 @@ public partial class PackageManagerViewModel : ObservableObject
var installedPackages = settingsManager.Settings.InstalledPackages;
if (installedPackages.Count == 0)
{
SelectedPackage = new InstalledPackage
{
DisplayName = "Click \"Add Package\" to install a package"
};
InstallButtonVisibility = Visibility.Collapsed;
return;
}

Loading…
Cancel
Save