js: Stop using Gio._LocalFilePrototype

gjs now supports overriding interface methods, so promisify()
works on Gio.File itself, not just the LocalFilePrototype cludge.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2174>
This commit is contained in:
Florian Müllner
2022-02-11 00:15:27 +01:00
committed by Marge Bot
parent 55a37ac992
commit 928f3288e9
3 changed files with 5 additions and 5 deletions

View File

@@ -100,8 +100,8 @@ let _themeResource = null;
let _oskResource = null;
let _iconResource = null;
Gio._promisify(Gio._LocalFilePrototype, 'delete_async', 'delete_finish');
Gio._promisify(Gio._LocalFilePrototype, 'touch_async', 'touch_finish');
Gio._promisify(Gio.File.prototype, 'delete_async', 'delete_finish');
Gio._promisify(Gio.File.prototype, 'touch_async', 'touch_finish');
let _remoteAccessInhibited = false;