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