Skip to content
Open
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
19 changes: 10 additions & 9 deletions osr/handlers/settingshandler.simba
Original file line number Diff line number Diff line change
Expand Up @@ -446,15 +446,15 @@ function TSettingsHandler.DisableMagicFilters(out actionsTaken: Int32): Boolean;
var
button: TRSButton;
begin
Self.DebugLn('DisableMagicFilters -> Attempting to disable magic filters');
if not Magic.OpenFilters() then
begin
Self.DebugLn('DisableMagicFilters -> Failed to open magic filters');
Exit;
end;
Self.DebugLn('DisableMagicFilters -> Checking magic filters');
if not Magic.IsFiltered() then
begin
Self.DebugLn('DisableMagicFilters -> No filters active');
Exit(True);
end;
if not Magic.OpenFilters() then
begin
Self.DebugLn('DisableMagicFilters -> Failed to open magic filters');
Exit;
end;
for button in Magic.GetFilterButtons() do
Expand All @@ -466,9 +466,10 @@ begin
Inc(actionsTaken);
end;
end;
Result := WaitUntil(Magic.CloseFilters(), 400, 3000);
end;

Self.DebugLn('DisableMagicFilters -> ' + ToStr(actionsTaken) + ' filter(s) disabled, closing panel');
Magic.CloseFilters();
Result := WaitUntil(not Magic.IsFiltered(), 300, 3000);
end;
(*
## SettingsHandler.FixScreenPostResolutionChange()
```pascal
Expand Down