The expected outcome here is that when a checkbox is clicked, the loading icon will be enabled, and if the checkbox is enabled, the variable C1 would be set to true, else it would be set to false. Then the loading icon will be disabled.
You are making the circular progress visible to true and immediately setting it visible to false. What do you expect to happen? That’s exactly what’s going on!