nautilus: Update for compatibility with Nautilus 43
This commit is contained in:
parent
abd088a375
commit
9b6d3a7c3d
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue