Fix exception on startup when the system tray icon is not enabled
This commit is contained in:
parent
2b3bd4f1f3
commit
789356d44d
@ -196,6 +196,9 @@ class SystemTray(component.Component):
|
|||||||
self.upload_rate = deluge.common.fsize(upload_rate)
|
self.upload_rate = deluge.common.fsize(upload_rate)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
if not self.config["enable_system_tray"]:
|
||||||
|
return
|
||||||
|
|
||||||
# Set the tool tip text
|
# Set the tool tip text
|
||||||
max_download_speed = self.max_download_speed
|
max_download_speed = self.max_download_speed
|
||||||
max_upload_speed = self.max_upload_speed
|
max_upload_speed = self.max_upload_speed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user