Compat with python3

This commit is contained in:
Albert Vaca 2018-05-29 21:03:02 +02:00
parent 18e799612d
commit 138147bf58

View file

@ -113,7 +113,7 @@ class KdeConnectShareExtension(GObject.GObject, Nautilus.MenuProvider):
return return
if len(devices) == 1: if len(devices) == 1:
deviceId, deviceName = devices[0], devices[0] deviceId, deviceName = list(devices.items())[0]
item = Nautilus.MenuItem( item = Nautilus.MenuItem(
name='KdeConnectShareExtension::Devices::' + deviceId, name='KdeConnectShareExtension::Devices::' + deviceId,
label=_("Send to %s via KDE Connect") % deviceName, label=_("Send to %s via KDE Connect") % deviceName,