Revert "Extension: Load icons from resources"

This reverts commit 5d6804ab0d.
This commit is contained in:
Romain Vigier
2022-04-08 13:46:23 +02:00
parent 289301a4ba
commit dc35777245
6 changed files with 13 additions and 28 deletions
+1 -9
View File
@@ -3,7 +3,7 @@
'use strict';
const { Gio, GLib } = imports.gi;
const { Gio } = imports.gi;
const { extensionUtils } = imports.misc;
const Me = extensionUtils.getCurrentExtension();
@@ -16,7 +16,6 @@ const { Timer } = Me.imports.modules.Timer;
class NightThemeSwitcher {
#resource = null;
#timer = null;
#switcherThemeGtk = null;
#switcherThemeShell = null;
@@ -33,10 +32,6 @@ class NightThemeSwitcher {
enable() {
console.debug('Enabling extension...');
this.#resource = Gio.Resource.load(GLib.build_filenamev([Me.path, 'resources', 'extension.gresource']));
Gio.resources_register(this.#resource);
this.#timer = new Timer();
this.#switcherThemeGtk = new SwitcherThemeGtk({ timer: this.#timer });
this.#switcherThemeIcon = new SwitcherThemeIcon({ timer: this.#timer });
@@ -85,9 +80,6 @@ class NightThemeSwitcher {
this.#timer = null;
}
if (this.#resource)
Gio.resources_unregister(this.#resource);
console.debug('Extension disabled.');
}