Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e25ff28e authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: improve how we define an addon type

parent d6c389e6
......@@ -157,8 +157,8 @@ AbstractResource::Type AppPackageKitResource::type() const
{
static QString desktop = QString::fromUtf8(qgetenv("XDG_CURRENT_DESKTOP"));
const auto desktops = m_appdata.compulsoryForDesktops();
return (!desktops.isEmpty() && !desktops.contains(desktop)) ? Application
: m_appdata.kind() == AppStream::Component::KindAddon ? Addon
return m_appdata.kind() == AppStream::Component::KindAddon ? Addon
: (desktops.isEmpty() || !desktops.contains(desktop)) ? Application
: Technical;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment