Fix preferences window error
This commit is contained in:
+2
-3
@@ -18,7 +18,6 @@ this program. If not, see <http s ://www.gnu.org/licenses/>.
|
||||
|
||||
const { Gio, GLib, Gtk } = imports.gi;
|
||||
const { extensionUtils } = imports.misc;
|
||||
const { main } = imports.ui;
|
||||
|
||||
const Me = extensionUtils.getCurrentExtension();
|
||||
const config = Me.imports.config;
|
||||
@@ -32,8 +31,8 @@ var log_debug = function(message) {
|
||||
|
||||
var log_error = function(error) {
|
||||
logError(error, Me.metadata.name);
|
||||
if ( error.message ) {
|
||||
main.notifyError(Me.metadata.name, error.message);
|
||||
if ( error.message && imports.ui ) {
|
||||
imports.ui.main.notifyError(Me.metadata.name, error.message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user