Fix attempting to toggle visibility when tray disabled