From 0b7e8f9720a20684dadde065764dfa2f368b96ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 11 Feb 2022 15:42:20 +0100 Subject: [PATCH] user-theme: Stop using Gio._LocalFilePrototype Now that promisify() works on interfaces, we don't need this cludge anymore. Part-of: --- extensions/user-theme/prefs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/user-theme/prefs.js b/extensions/user-theme/prefs.js index c84e4447..54304787 100644 --- a/extensions/user-theme/prefs.js +++ b/extensions/user-theme/prefs.js @@ -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');