From c5fa2c0bc0ee174c76d81e429443143c27e92bda Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 12 Sep 2024 10:00:19 +0100 Subject: [PATCH] Hide game history if desktop app is disabled --- Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml | 4 ++-- Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml index a3a4754..b3e08e2 100644 --- a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml +++ b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml @@ -49,7 +49,7 @@ - + @@ -61,7 +61,7 @@ - + diff --git a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs index 388752e..d55c3dd 100644 --- a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs +++ b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs @@ -2,16 +2,11 @@ using System.Windows.Controls; using System.Windows.Interop; -using Wpf.Ui.Appearance; -using Wpf.Ui.Mvvm.Contracts; -using Wpf.Ui.Mvvm.Services; - using Windows.Win32; using Windows.Win32.Foundation; using Windows.Win32.UI.WindowsAndMessaging; using Bloxstrap.Integrations; -using Bloxstrap.Resources; namespace Bloxstrap.UI.Elements.ContextMenu { @@ -46,6 +41,9 @@ namespace Bloxstrap.UI.Elements.ContextMenu if (_watcher.RichPresence is not null) RichPresenceMenuItem.Visibility = Visibility.Visible; + if (!App.Settings.Prop.UseDisableAppPatch) + GameHistoryMenuItem.Visibility = Visibility.Visible; + VersionTextBlock.Text = $"{App.ProjectName} v{App.Version}"; }