mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
Fix attempting to blink system tray icon when it's not enabled
This commit is contained in:
parent
244a437d1b
commit
92987a05cd
1 changed files with 6 additions and 12 deletions
|
@ -236,18 +236,12 @@ class SystemTray(component.Component):
|
||||||
log.debug("Unable to disable system tray: %s", e)
|
log.debug("Unable to disable system tray: %s", e)
|
||||||
|
|
||||||
def blink(self, value):
|
def blink(self, value):
|
||||||
self.tray.set_blinking(value)
|
try:
|
||||||
|
self.tray.set_blinking(value)
|
||||||
#def on_set_tray_flashing_off(self):
|
except AttributeError:
|
||||||
# """makes the tray icon stop blinking"""
|
# If self.tray is not defined then ignore. This happens when the
|
||||||
# if self.tray.get_blinking():
|
# tray icon is not being used.
|
||||||
# log.debug("stop blinking the tray icon..")
|
pass
|
||||||
# self.tray.set_blinking(False)
|
|
||||||
#
|
|
||||||
#def on_set_tray_flashing_on(self):
|
|
||||||
# """makes the tray icon blink"""
|
|
||||||
# log.debug("start blinking the tray icon..")
|
|
||||||
# self.tray.set_blinking(True)
|
|
||||||
|
|
||||||
def on_enable_system_tray_set(self, key, value):
|
def on_enable_system_tray_set(self, key, value):
|
||||||
"""Called whenever the 'enable_system_tray' config key is modified"""
|
"""Called whenever the 'enable_system_tray' config key is modified"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue