Skip to content

Commit

Permalink
fix backward compatibility
Browse files Browse the repository at this point in the history
ChrisLauinger77 committed Nov 18, 2022

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
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;
@@ -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);
}
@@ -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);

0 comments on commit cf8e476

Please sign in to comment.