Skip to content

Commit

Permalink
refactor to remove if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 22, 2023
1 parent d2fcc93 commit c49796b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/JFScene.bs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ end sub

' Triggered when the isLoading boolean component field is changed
sub isLoadingChanged()
if m.top.isLoading
m.spinner.visible = true
else
m.spinner.visible = false
end if
m.spinner.visible = m.top.isLoading
end sub

' Triggered when the disableRemote boolean component field is changed
Expand Down

0 comments on commit c49796b

Please sign in to comment.