Fixing infinite spinner animation
Fixing infinite spinner animation

setupMainMenu() & setupUserMenu():
Changed click delegate to add the spinner animation only the primary mouse button was clicked without ctrl- or meta-key modifier
Adding mouseup delegate to hide the menu if the middle mouse button was clicked.

Redone #778

michaelletzgus/nextcloud-server,whitekiba/server,andreas-p/nextcloud-server,pmattern/server,andreas-p/nextcloud-server,Ardinis/server,whitekiba/server,jbicha/server,pixelipo/server,pixelipo/server,xx621998xx/server,andreas-p/nextcloud-server,endsguy/server,whitekiba/server,jbicha/server,nextcloud/server,pmattern/server,andreas-p/nextcloud-server,pmattern/server,endsguy/server,michaelletzgus/nextcloud-server,pixelipo/server,michaelletzgus/nextcloud-server,endsguy/server,andreas-p/nextcloud-server,Ardinis/server,jbicha/server,xx621998xx/server,pixelipo/server,nextcloud/server,whitekiba/server,nextcloud/server,xx621998xx/server,Ardinis/server,endsguy/server,pixelipo/server,Ardinis/server,jbicha/server,nextcloud/server,whitekiba/server,pmattern/server,xx621998xx/server,Ardinis/server,jbicha/server,xx621998xx/server,endsguy/server,pmattern/server,michaelletzgus/nextcloud-server