Linux: Fix right clicking on system tray icon not working

Fixes #1897571 [Weird dbus error with the systray menu on Linux](https://bugs.launchpad.net/calibre/+bug/1897571)
This commit is contained in:
Kovid Goyal 2020-09-28 19:52:39 +05:30
parent 8586cb8d9a
commit c27a4f141f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -62,7 +62,7 @@ def create_properties_for_action(ac, previous=None):
data = icon_to_dbus_menu_icon(ac.icon()) data = icon_to_dbus_menu_icon(ac.icon())
if data is not None: if data is not None:
ans['icon-data'] = data ans['icon-data'] = data
ans['x-qt-icon-cache-key'] = icon.cacheKey() ans['x-qt-icon-cache-key'] = dbus.UInt64(icon.cacheKey())
return ans return ans