From 08d4ac0f5614b8d6c714599dc075b83959b0af68 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 20 Jul 2024 12:16:46 +0200 Subject: [PATCH] Prevent installation of VanillaPlus --- VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs b/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs index 4f5a89b..dae9a38 100644 --- a/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs +++ b/VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs @@ -4456,6 +4456,16 @@ private void Install_Bttn_Thunderstore_Click(object sender, RoutedEventArgs e) } Console.WriteLine(Button.Tag.ToString()); + if (name.Contains("VanillaPlus")) + { + Main.Snackbar.Message = "VanillaPlus cannot be installed through VTOL"; + Main.Snackbar.Title = VTOL.Resources.Languages.Language.INFO; + Main.Snackbar.Appearance = Wpf.Ui.Common.ControlAppearance.Info; + Main.Snackbar.Show(); + + return; + } + DispatchIfNecessary(async () => { if (parts[0].Contains("http") || parts[0].Contains("https"))