Home Website Youtube GitHub

MGear Viewport Menu toggle button on shelf

I tried to find ways to create a simple toggle button for the MGear Viewport Menu checkbox on my Maya shelf. It seems to be trickier than I thought. Did anyone try to make one?