Use shell notifyError
This commit is contained in:
@@ -9,7 +9,6 @@ const Me = extensionUtils.getCurrentExtension();
|
||||
|
||||
const e = Me.imports.extension;
|
||||
const utils = Me.imports.utils;
|
||||
const { notifyError } = utils;
|
||||
const { GtkVariants } = Me.imports.modules.GtkVariants;
|
||||
|
||||
const Gettext = imports.gettext.domain(Me.metadata['gettext-domain']);
|
||||
@@ -47,7 +46,7 @@ var GtkThemer = class {
|
||||
this._updateSystemGtkTheme();
|
||||
}
|
||||
} catch (error) {
|
||||
notifyError(error);
|
||||
main.notifyError(Me.metadata.name, error);
|
||||
}
|
||||
console.debug('GTK Themer enabled.');
|
||||
}
|
||||
@@ -137,7 +136,7 @@ var GtkThemer = class {
|
||||
this._updateCurrentVariant();
|
||||
this._updateSystemGtkTheme();
|
||||
} catch (error) {
|
||||
notifyError(error);
|
||||
main.notifyError(Me.metadata.name, error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,14 +3,12 @@
|
||||
|
||||
const { Gio } = imports.gi;
|
||||
const { extensionUtils } = imports.misc;
|
||||
const Signals = imports.signals;
|
||||
const { main } = imports.ui;
|
||||
|
||||
const Me = extensionUtils.getCurrentExtension();
|
||||
|
||||
const e = Me.imports.extension;
|
||||
const utils = Me.imports.utils;
|
||||
const { notifyError } = Me.imports.utils;
|
||||
const { ShellVariants } = Me.imports.modules.ShellVariants;
|
||||
|
||||
const Gettext = imports.gettext.domain(Me.metadata['gettext-domain']);
|
||||
@@ -47,7 +45,7 @@ var ShellThemer = class {
|
||||
this._updateSystemShellTheme();
|
||||
}
|
||||
} catch (error) {
|
||||
notifyError(error);
|
||||
main.notifyError(Me.metadata.name, error);
|
||||
}
|
||||
console.debug('Shell Themer enabled.');
|
||||
}
|
||||
@@ -141,7 +139,7 @@ var ShellThemer = class {
|
||||
this._updateCurrentVariant();
|
||||
this._updateSystemShellTheme();
|
||||
} catch (error) {
|
||||
notifyError(error);
|
||||
main.notifyError(Me.metadata.name, error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user