Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide power tools #1267

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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