Skip to content

Commit c086c8d

Browse files
authored
Merge pull request #96 from Jan200101/PR/vplus-dis
Prevent installation of VanillaPlus
2 parents 8f0fb59 + 08d4ac0 commit c086c8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4456,6 +4456,16 @@ private void Install_Bttn_Thunderstore_Click(object sender, RoutedEventArgs e)
44564456
}
44574457
Console.WriteLine(Button.Tag.ToString());
44584458

4459+
if (name.Contains("VanillaPlus"))
4460+
{
4461+
Main.Snackbar.Message = "VanillaPlus cannot be installed through VTOL";
4462+
Main.Snackbar.Title = VTOL.Resources.Languages.Language.INFO;
4463+
Main.Snackbar.Appearance = Wpf.Ui.Common.ControlAppearance.Info;
4464+
Main.Snackbar.Show();
4465+
4466+
return;
4467+
}
4468+
44594469
DispatchIfNecessary(async () =>
44604470
{
44614471
if (parts[0].Contains("http") || parts[0].Contains("https"))

0 commit comments

Comments
 (0)