Move all file operations code to single file

This commit is contained in:
Rafał Dzięgiel
2021-04-01 21:52:19 +02:00
parent 295af9fd24
commit 7f69bee11c
5 changed files with 99 additions and 103 deletions

View File

@@ -1,11 +1,8 @@
imports.gi.versions.Gdk = '4.0';
imports.gi.versions.Gtk = '4.0';
const { Gio, Gst } = imports.gi;
const { Gst } = imports.gi;
Gst.init(null);
Gio._promisify(Gio._LocalFilePrototype, 'load_bytes_async', 'load_bytes_finish');
Gio._promisify(Gio._LocalFilePrototype, 'replace_contents_bytes_async', 'replace_contents_finish');
const { App } = imports.src.app;