Skip to content

Commit

Permalink
Fix FPFCToggle when Ignore = true
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Nov 16, 2024
1 parent e2e8166 commit cdac839
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SiraUtil/Tools/FPFC/FPFCSettingsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public FPFCSettingsController(FPFCOptions fpfcOptions, SiraLog siraLog)
{
_fpfcOptions = fpfcOptions;
_siraLog = siraLog;
Enabled = !_fpfcOptions.Ignore;
}

public void Tick()
Expand All @@ -56,7 +55,7 @@ public void Tick()
public void Initialize()
{
_fpfcOptions.Updated += ConfigUpdated;
DeinitializeXRLoader();
Enabled = !_fpfcOptions.Ignore;
}

private void ConfigUpdated(FPFCOptions _)
Expand All @@ -67,7 +66,6 @@ private void ConfigUpdated(FPFCOptions _)
public void Dispose()
{
_fpfcOptions.Updated -= ConfigUpdated;
InitializeXRLoader();
}

// we unfortunately need to fully deinitialize/initialize the XR loader since OpenXR doesn't simply stop/start properly
Expand Down

0 comments on commit cdac839

Please sign in to comment.