Fix exception on startup when the system tray icon is not enabled
This commit is contained in:
parent
266693a6f9
commit
04f8f80b9b
@ -10,6 +10,7 @@
|
|||||||
* Fix #1071 issue where Deluge will fail to start if there is a stale ipc lockfile
|
* Fix #1071 issue where Deluge will fail to start if there is a stale ipc lockfile
|
||||||
* Fix autoconnecting to the next host in the list if the selected one isn't available
|
* Fix autoconnecting to the next host in the list if the selected one isn't available
|
||||||
* Fix endless loop when trying to autoconnect to an offline daemon
|
* Fix endless loop when trying to autoconnect to an offline daemon
|
||||||
|
* Fix exception on startup when the system tray icon is not enabled
|
||||||
|
|
||||||
==== Web ====
|
==== Web ====
|
||||||
* Fix installing the deluge-web manpage
|
* Fix installing the deluge-web manpage
|
||||||
|
|||||||
@ -165,7 +165,7 @@ class SystemTray(component.Component):
|
|||||||
self.tray.set_tooltip(_("Deluge\nNot Connected.."))
|
self.tray.set_tooltip(_("Deluge\nNot Connected.."))
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
if self.config["enable_system_tray"]:
|
if self.config["enable_system_tray"]:
|
||||||
self.tray.set_visible(False)
|
self.tray.set_visible(False)
|
||||||
|
|
||||||
def send_status_request(self):
|
def send_status_request(self):
|
||||||
@ -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