MCPcopy
hub / github.com/Sathvik-Rao/ClipCascade / _on_disconnect

Method _on_disconnect

ClipCascade_Desktop/src/cli/tray.py:220–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218 self.update_menu(no_dialog=True)
219
220 def _on_disconnect(self):
221 if self.on_disconnect_callback:
222 self.on_disconnect_callback()
223 if self.ws_interface is not None and self.ws_interface.is_auto_reconnecting:
224 threading.Thread(target=self._wait_to_disconnect, daemon=True).start()
225 else:
226 self.is_connected = False
227 self.update_menu(no_dialog=True)
228
229 def _wait_to_disconnect(self):
230 """

Callers

nothing calls this directly

Calls 2

update_menuMethod · 0.95
startMethod · 0.80

Tested by

no test coverage detected