Skip to content

Commit

Permalink
Merge pull request #1267 from bluepilledgreat/feature/hide-power-options
Browse files Browse the repository at this point in the history
hide power tools
  • Loading branch information
pizzaboxer authored Feb 9, 2024
2 parents 9d50ffc + 7877fd0 commit c137db6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Bloxstrap/Integrations/ActivityWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async void StartWatcher()

int delay = 1000;

if (App.Settings.Prop.OhHeyYouFoundMe)
if (App.Settings.Prop.PowerTools)
delay = 250;

string logDirectory = Path.Combine(Paths.LocalAppData, "Roblox\\logs");
Expand Down
5 changes: 4 additions & 1 deletion Bloxstrap/Models/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public class Settings
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;
Expand Down
2 changes: 1 addition & 1 deletion Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public MenuContainer(ActivityWatcher? activityWatcher, DiscordRichPresence? rich

if (_activityWatcher is not null)
{
if (App.Settings.Prop.OhHeyYouFoundMe)
if (App.Settings.Prop.PowerTools)
LogTracerMenuItem.Visibility = Visibility.Visible;

_activityWatcher.OnGameJoin += ActivityWatcher_OnGameJoin;
Expand Down
2 changes: 1 addition & 1 deletion Bloxstrap/UI/ViewModels/Menu/FastFlagsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private void OpenFastFlagEditor()

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
{
Expand Down

0 comments on commit c137db6

Please sign in to comment.