From 0fd25a38f89bb45b47ef25910a63e587061f79b8 Mon Sep 17 00:00:00 2001 From: JT Date: Wed, 31 May 2023 17:29:35 -0700 Subject: [PATCH] fix showing dummy values on last package uninstall --- StabilityMatrix/ViewModels/PackageManagerViewModel.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/StabilityMatrix/ViewModels/PackageManagerViewModel.cs b/StabilityMatrix/ViewModels/PackageManagerViewModel.cs index 86b040fa..88f28d39 100644 --- a/StabilityMatrix/ViewModels/PackageManagerViewModel.cs +++ b/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; }