mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
Prevent some uncaught exceptions when systemtray is not enabled
This commit is contained in:
parent
360790876b
commit
9324134d8f
1 changed files with 10 additions and 8 deletions
|
@ -153,6 +153,7 @@ class SystemTray(component.Component):
|
|||
self.__start()
|
||||
|
||||
def stop(self):
|
||||
if self.config["enable_system_tray"]:
|
||||
try:
|
||||
# Hide widgets in hide list because we're not connected to a host
|
||||
for widget in self.hide_widget_list:
|
||||
|
@ -163,6 +164,7 @@ class SystemTray(component.Component):
|
|||
self.tray.set_tooltip(_("Deluge\nNot Connected.."))
|
||||
|
||||
def shutdown(self):
|
||||
if self.config["enable_system_tray"]:
|
||||
self.tray.set_visible(False)
|
||||
|
||||
def send_status_request(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue