How to stop an attempt of connecting to a wifi?

There doesn’t seem to be a ‘stop connecting’ or ‘X’ or right-click on the configuration panel
Screenshot from 2021-10-11 15-13-19

Neither is there a way to forget the network, as the gear button becomes a circle, so the ‘Forget Connection’ button is unavailable.

Does anyone know how to stop an ongoing connection attempt?


We changed this for GNOME 41, see

Now the gear button will stay next to the spinner while connecting, allowing for reconfiguring the connection in cancel it.