user-theme: Stop using Gio._LocalFilePrototype

Now that promisify() works on interfaces, we don't need this
cludge anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/214>
This commit is contained in:
Florian Müllner
2022-02-11 16:22:38 +01:00
parent f6342d3b52
commit 0b7e8f9720
+2 -2
View File
@@ -11,9 +11,9 @@ const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Util = Me.imports.util;
Gio._promisify(Gio._LocalFilePrototype,
Gio._promisify(Gio.File.prototype,
'enumerate_children_async', 'enumerate_children_finish');
Gio._promisify(Gio._LocalFilePrototype,
Gio._promisify(Gio.File.prototype,
'query_info_async', 'query_info_finish');
Gio._promisify(Gio.FileEnumerator.prototype,
'next_files_async', 'next_files_finish');