Skip to content

Commit

Permalink
Merge pull request #5 from LynithDev/master
Browse files Browse the repository at this point in the history
Fix null?
  • Loading branch information
LynithDev authored Apr 19, 2023
2 parents 4b210ef + 1648038 commit 3b14849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ function fillPreferencesWindow(window) {
} else {
for (const appId of hiddenApps) {
const appInfo = Gio.DesktopAppInfo.new(appId);
const appIcon = appInfo.get_icon() == null ? "application-x-executable" : appInfo.get_icon();

const row = new Adw.ActionRow({
icon_name: appInfo.get_icon().to_string() || "application-x-executable",
icon_name: appIcon,
title: appInfo.get_name(),
subtitle: appInfo.get_description(),
});
Expand Down Expand Up @@ -54,4 +55,4 @@ function fillPreferencesWindow(window) {
}

window.add(page);
}
}

0 comments on commit 3b14849

Please sign in to comment.