From 7877fd08cdedcd3a8e0a47efe37fb719969806b6 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:11:08 +0000 Subject: [PATCH] hide power tools --- Bloxstrap/Integrations/ActivityWatcher.cs | 2 +- Bloxstrap/Models/Settings.cs | 5 ++++- Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs | 2 +- Bloxstrap/UI/ViewModels/Menu/FastFlagsViewModel.cs | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Bloxstrap/Integrations/ActivityWatcher.cs b/Bloxstrap/Integrations/ActivityWatcher.cs index 857b410..142eba8 100644 --- a/Bloxstrap/Integrations/ActivityWatcher.cs +++ b/Bloxstrap/Integrations/ActivityWatcher.cs @@ -60,7 +60,7 @@ int delay = 1000; - if (App.Settings.Prop.OhHeyYouFoundMe) + if (App.Settings.Prop.PowerTools) delay = 250; string logDirectory = Path.Combine(Paths.LocalAppData, "Roblox\\logs"); diff --git a/Bloxstrap/Models/Settings.cs b/Bloxstrap/Models/Settings.cs index 638052b..416d17c 100644 --- a/Bloxstrap/Models/Settings.cs +++ b/Bloxstrap/Models/Settings.cs @@ -13,7 +13,10 @@ namespace Bloxstrap.Models public bool CheckForUpdates { get; set; } = true; public bool CreateDesktopIcon { get; set; } = true; public bool MultiInstanceLaunching { get; set; } = false; - public bool OhHeyYouFoundMe { get; set; } = false; + + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] + [JsonPropertyName("OhHeyYouFoundMeAgain")] + public bool PowerTools { get; set; } = false; // channel configuration public string Channel { get; set; } = RobloxDeployment.DefaultChannel; diff --git a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs index 842bc57..30ee5f7 100644 --- a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs +++ b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs @@ -39,7 +39,7 @@ namespace Bloxstrap.UI.Elements.ContextMenu if (_activityWatcher is not null) { - if (App.Settings.Prop.OhHeyYouFoundMe) + if (App.Settings.Prop.PowerTools) LogTracerMenuItem.Visibility = Visibility.Visible; _activityWatcher.OnGameJoin += ActivityWatcher_OnGameJoin; diff --git a/Bloxstrap/UI/ViewModels/Menu/FastFlagsViewModel.cs b/Bloxstrap/UI/ViewModels/Menu/FastFlagsViewModel.cs index c596519..fc75118 100644 --- a/Bloxstrap/UI/ViewModels/Menu/FastFlagsViewModel.cs +++ b/Bloxstrap/UI/ViewModels/Menu/FastFlagsViewModel.cs @@ -28,7 +28,7 @@ namespace Bloxstrap.UI.ViewModels.Menu public ICommand OpenFastFlagEditorCommand => new RelayCommand(OpenFastFlagEditor); - public Visibility ShowDebugFlags => App.Settings.Prop.OhHeyYouFoundMe ? Visibility.Visible : Visibility.Collapsed; + public Visibility ShowDebugFlags => App.Settings.Prop.PowerTools ? Visibility.Visible : Visibility.Collapsed; public bool HttpRequestLogging {