mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
Fix #2104 : Deluge has no indicator title
This commit is contained in:
parent
bb7b529c29
commit
610cd7dd33
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ class SystemTray(component.Component):
|
||||||
log.debug("Enabling the Application Indicator..")
|
log.debug("Enabling the Application Indicator..")
|
||||||
self.indicator = appindicator.Indicator (
|
self.indicator = appindicator.Indicator (
|
||||||
"deluge", "deluge", appindicator.CATEGORY_APPLICATION_STATUS)
|
"deluge", "deluge", appindicator.CATEGORY_APPLICATION_STATUS)
|
||||||
|
try:
|
||||||
|
self.indicator.set_property ("title", _("Deluge"))
|
||||||
|
except TypeError:
|
||||||
|
# Catch 'title' property error for previous appindicator versions
|
||||||
|
pass
|
||||||
# Pass the menu to the Application Indicator
|
# Pass the menu to the Application Indicator
|
||||||
self.indicator.set_menu(self.tray_menu)
|
self.indicator.set_menu(self.tray_menu)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue