code: def toggle_service(self):
          
          self.monitoring_disabled.emit(not self.service.is_running())
          if self.service.is_running():
              self.pause_service()
          else:
              self.unpause_service()
docs: Convenience method for toggling the expansion service on or off. This is called by the global hotkey.