Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,20 @@ public class Feedback.MainWindow : Gtk.ApplicationWindow {
components.foreach ((component) => {
// FIXME: This should use kind != DESKTOP_APP but some metainfo is currently inaccurate
if (component.kind != ADDON && !(component.id in app_entries)) {
var url = component.get_url (AppStream.UrlKind.BUGTRACKER);
if (url == null) {
// Ignore components without a bugtracker URL
// because rows that just show a component name
// and can't take users to report issues are
// useless
return;
}

var repo_row = new RepoRow (
component.name,
icon_from_appstream_component (component),
Category.SYSTEM,
component.get_url (AppStream.UrlKind.BUGTRACKER)
url
);

listbox.append (repo_row);
Expand Down