mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[GTK3] Fix missing AppIndicator option in Preferences
Issue with legacy tray icon being used despite AyatanaAppIndicator3 installed. The problem is due to option to use AppIndicator not being shown in Preferences. Fixes: https://dev.deluge-torrent.org/ticket/3598
This commit is contained in:
parent
81116a63ca
commit
dbedf7f639
1 changed files with 6 additions and 2 deletions
|
@ -30,8 +30,12 @@ from .dialogs import AccountDialog, ErrorDialog, InformationDialog, YesNoDialog
|
|||
from .path_chooser import PathChooser
|
||||
|
||||
try:
|
||||
require_version('AppIndicator3', '0.1')
|
||||
from gi.repository import AppIndicator3 # noqa: F401
|
||||
try:
|
||||
require_version('AyatanaAppIndicator3', '0.1')
|
||||
from gi.repository import AyatanaAppIndicator3 # noqa: F401
|
||||
except (ValueError, ImportError):
|
||||
require_version('AppIndicator3', '0.1')
|
||||
from gi.repository import AppIndicator3 # noqa: F401
|
||||
except (ImportError, ValueError):
|
||||
appindicator = False
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue