Skip to content

Commit

Permalink
fix backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLauinger77 committed Nov 18, 2022
1 parent b028fc0 commit cf8e476
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions [email protected]/prefs.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
const ExtensionUtils = imports.misc.extensionUtils;
const { Gtk, Gdk, GObject, Gio } = imports.gi;
try {
const { Adw } = imports.gi;
} catch (err) {
logError(err, "messagingmenu");
}

const Me = ExtensionUtils.getCurrentExtension();
const Gettext = imports.gettext.domain("messagingmenu");
const _ = Gettext.gettext;
Expand Down Expand Up @@ -184,6 +178,7 @@ function _addMenu(cmb_add, entry_add) {
if (!valuesettings.toLowerCase().includes(entry_add.text.toLowerCase())) {
settings.set_string(strsettings, valuesettings + ";" + entry_add.text);
let group = builder.get_object(strgroup);
const { Adw } = imports.gi;
let adwrow = new Adw.ActionRow({ title: entry_add.text });
group.add(adwrow);
}
Expand Down Expand Up @@ -279,6 +274,7 @@ function _page1() {
}

function _fillgroup(group, applist) {
const { Adw } = imports.gi;
for (let app of applist) {
let adwrow = new Adw.ActionRow({ title: app });
group.add(adwrow);
Expand Down

0 comments on commit cf8e476

Please sign in to comment.