Skip to content

Commit

Permalink
refactor!: removal of fastflag configuration/#1321
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Feb 23, 2024
1 parent 2531b44 commit c3013a0
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 1,229 deletions.
2 changes: 0 additions & 2 deletions Bloxstrap/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public partial class App : Application

public static readonly JsonManager<Settings> Settings = new();
public static readonly JsonManager<State> State = new();
public static readonly FastFlagManager FastFlags = new();

public static readonly HttpClient HttpClient = new(
new HttpClientLoggingHandler(
Expand Down Expand Up @@ -177,7 +176,6 @@ protected override void OnStartup(StartupEventArgs e)

Settings.Load();
State.Load();
FastFlags.Load();
}

if (!IsUninstall && !IsMenuLaunch)
Expand Down
1 change: 0 additions & 1 deletion Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ public async Task Run()

await InstallWebView2();

App.FastFlags.Save();
await ApplyModifications();

if (App.IsFirstRun || FreshInstall)
Expand Down
229 changes: 0 additions & 229 deletions Bloxstrap/FastFlagManager.cs

This file was deleted.

32 changes: 0 additions & 32 deletions Bloxstrap/InstallChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ private static void FirstTimeRun()

App.IsSetupComplete = false;

App.FastFlags.Load();
Controls.ShowMenu();

// exit if we don't click the install button on installation
Expand Down Expand Up @@ -210,37 +209,6 @@ internal static void CheckUpgrade()

Bootstrapper.Register();

// update migrations

if (App.BuildMetadata.CommitRef.StartsWith("tag"))
{
if (existingVersionInfo.ProductVersion == "2.4.0")
{
App.FastFlags.SetValue("DFFlagDisableDPIScale", null);
App.FastFlags.SetValue("DFFlagVariableDPIScale2", null);
App.FastFlags.Save();
}
else if (existingVersionInfo.ProductVersion == "2.5.0")
{
App.FastFlags.SetValue("FIntDebugForceMSAASamples", null);

if (App.FastFlags.GetPreset("UI.Menu.Style.DisableV2") is not null)
App.FastFlags.SetPreset("UI.Menu.Style.ABTest", false);

App.FastFlags.Save();
}
else if (existingVersionInfo.ProductVersion == "2.5.3")
{
App.FastFlags.SetValue("FFlagDebugGraphicsPreferD3D11", null);
App.FastFlags.SetValue("FFlagDebugGraphicsPreferD3D11FL10", null);
App.FastFlags.SetValue("FFlagDebugGraphicsPreferVulkan", null);
App.FastFlags.SetValue("FFlagRenderVulkanFixMinimizeWindow", null);
App.FastFlags.SetValue("FFlagDebugGraphicsPreferOpenGL", null);

App.FastFlags.Save();
}
}

if (isAutoUpgrade)
{
App.NotifyIcon?.ShowAlert(
Expand Down
9 changes: 0 additions & 9 deletions Bloxstrap/Models/FastFlag.cs

This file was deleted.

60 changes: 0 additions & 60 deletions Bloxstrap/UI/Elements/Dialogs/AddFastFlagDialog.xaml

This file was deleted.

Loading

0 comments on commit c3013a0

Please sign in to comment.