nautilus: Update for compatibility with Nautilus 43

This commit is contained in:
Erich Eickmeyer 2022-08-17 14:10:16 +00:00
parent abd088a375
commit 9b6d3a7c3d

View file

@ -84,7 +84,10 @@ class KdeConnectShareExtension(GObject.GObject, Nautilus.MenuProvider):
variant = GLib.Variant('(s)', (file.get_uri(),)) variant = GLib.Variant('(s)', (file.get_uri(),))
device_proxy.call_sync('shareUrl', variant, 0, -1, None) device_proxy.call_sync('shareUrl', variant, 0, -1, None)
def get_file_items(self, window, files): def get_file_items(self, *args):
# `args` will be `[files: List[Nautilus.FileInfo]]` in Nautilus 4.0 API,
# and `[window: Gtk.Widget, files: List[Nautilus.FileInfo]]` in Nautilus 3.0 API.
files = args[-1]
#We can only send regular files #We can only send regular files
for uri in files: for uri in files: