mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Catch exception when enabling/disabling indicator in classic mode
This commit is contained in:
parent
3ca886ac7a
commit
b65918d616
1 changed files with 5 additions and 2 deletions
|
@ -161,8 +161,11 @@ class SystemTray(component.Component):
|
|||
if self.config["enable_system_tray"]:
|
||||
|
||||
if self.config["classic_mode"]:
|
||||
self.hide_widget_list.remove("menuitem_quitdaemon")
|
||||
self.hide_widget_list.remove("separatormenuitem4")
|
||||
try:
|
||||
self.hide_widget_list.remove("menuitem_quitdaemon")
|
||||
self.hide_widget_list.remove("separatormenuitem4")
|
||||
except ValueError:
|
||||
pass
|
||||
self.tray_glade.get_widget("menuitem_quitdaemon").hide()
|
||||
self.tray_glade.get_widget("separatormenuitem4").hide()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue