Stop tray icon
(self)
| 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 |
no outgoing calls