Skip to content

Commit

Permalink
fix: better tanscreen click logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Sep 27, 2024
1 parent 78443b2 commit 1f45fee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions optional/interfaces/mainscreen/tanscreen.simba
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ end;
function TRSTanScreen.ClickHide(hide: ERSHide; option: String = 'Tan All'; waitTime: Int32 = -1): Boolean;
begin
Result := Self.HoverHide(hide);
if not Result then Exit;

if not Result then
Exit;

if (option <> '') or (option <> 'Tan 1') then
Result := ChooseOption.Select(option) //if we chooseoption we might want to reset result.
if (option = '') or MainScreen.IsUpText('Tan All') then
Mouse.Click(MOUSE_LEFT)
else
Mouse.Click(MOUSE_LEFT);
Result := ChooseOption.Select(option); //if we chooseoption we might want to reset result.

if waitTime > 0 then
Result := WaitUntil(not Self.IsOpen(), 100, waitTime);
Expand Down

0 comments on commit 1f45fee

Please sign in to comment.