From 2552b3139db6db450a393f1d5e241de772cf5afa Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Fri, 3 Nov 2023 08:54:44 +0000 Subject: [PATCH] Hide options for channel configuration --- .../UI/Elements/Menu/Pages/BehaviourPage.xaml | 256 +++++++++--------- .../UI/Elements/Menu/Pages/FastFlagsPage.xaml | 2 +- Bloxstrap/UI/ViewModels/GlobalViewModel.cs | 5 +- 3 files changed, 136 insertions(+), 127 deletions(-) diff --git a/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml b/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml index 68bdc7b..fe47fdb 100644 --- a/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml +++ b/Bloxstrap/UI/Elements/Menu/Pages/BehaviourPage.xaml @@ -5,8 +5,9 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" xmlns:local="clr-namespace:Bloxstrap.UI.Elements.Menu.Pages" - xmlns:models="clr-namespace:Bloxstrap.UI.ViewModels.Menu" - d:DataContext="{d:DesignInstance Type=models:BehaviourViewModel}" + xmlns:models="clr-namespace:Bloxstrap.UI.ViewModels" + xmlns:menuModels="clr-namespace:Bloxstrap.UI.ViewModels.Menu" + d:DataContext="{d:DesignInstance Type=menuModels:BehaviourViewModel}" mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800" Title="BehaviourPage" @@ -35,129 +36,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Bloxstrap/UI/Elements/Menu/Pages/FastFlagsPage.xaml b/Bloxstrap/UI/Elements/Menu/Pages/FastFlagsPage.xaml index 666e665..4d6fe7a 100644 --- a/Bloxstrap/UI/Elements/Menu/Pages/FastFlagsPage.xaml +++ b/Bloxstrap/UI/Elements/Menu/Pages/FastFlagsPage.xaml @@ -34,7 +34,7 @@ - + diff --git a/Bloxstrap/UI/ViewModels/GlobalViewModel.cs b/Bloxstrap/UI/ViewModels/GlobalViewModel.cs index 2a5ba39..cbf1135 100644 --- a/Bloxstrap/UI/ViewModels/GlobalViewModel.cs +++ b/Bloxstrap/UI/ViewModels/GlobalViewModel.cs @@ -1,4 +1,5 @@ -using System.Windows.Input; +using System.Windows; +using System.Windows.Input; using CommunityToolkit.Mvvm.Input; namespace Bloxstrap.UI.ViewModels @@ -9,6 +10,8 @@ namespace Bloxstrap.UI.ViewModels public static bool IsNotFirstRun => !App.IsFirstRun; + public static Visibility ShowDebugStuff => App.Settings.Prop.OhHeyYouFoundMe ? Visibility.Visible : Visibility.Collapsed; + private static void OpenWebpage(string? location) { if (location is null)