MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / stop

Method stop

gui/tray.py:184–197  ·  view source on GitHub ↗

Stop tray icon

(self)

Source from the content-addressed store, hash-verified

182 # Status update - can be extended later
183
184 def stop(self) -> None:
185 """Stop tray icon"""
186 try:
187 if self.backend == "appindicator":
188 import gi
189
190 gi.require_version("Gtk", "3.0")
191 from gi.repository import Gtk
192
193 Gtk.main_quit()
194 elif self.backend == "pystray" and self.indicator:
195 self.indicator.stop()
196 except Exception:
197 pass

Callers 7

tearDownMethod · 0.45
asyncTearDownMethod · 0.45
_shutdown_resourcesFunction · 0.45
_close_completelyMethod · 0.45

Calls

no outgoing calls

Tested by 5

tearDownMethod · 0.36
asyncTearDownMethod · 0.36