Skip to content

Commit

Permalink
Merge pull request #96 from Jan200101/PR/vplus-dis
Browse files Browse the repository at this point in the history
Prevent installation of VanillaPlus
  • Loading branch information
BigSpice authored Jul 20, 2024
2 parents 8f0fb59 + 08d4ac0 commit c086c8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions VTOL_2.0.0/Pages/Page_Thunderstore.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit c086c8d

Please sign in to comment.