Perhaps personal preference, but I would expect that a second click on the gear would make the menu disappear,  not keep it displayed.  (That's how Chrome's drop-down menu behaves for me on Linux.  I'm not sure how other platforms behave.)