Skip to content

Commit

Permalink
[lipstick] Add isSandboxed to LauncherItem. Contributes to JB#52181
Browse files Browse the repository at this point in the history
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
  • Loading branch information
Tomin1 committed Dec 18, 2020
1 parent f97e9c8 commit 4783d6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/launcheritem.cpp
Expand Up @@ -184,6 +184,11 @@ bool LauncherItem::shouldDisplay() const
}
}

bool LauncherItem::isSandboxed() const
{
return !m_desktopEntry.isNull() ? m_desktopEntry->isSandboxed() : false;
}

bool LauncherItem::isValid() const
{
return !m_desktopEntry.isNull() ? m_desktopEntry->isValid() : m_isTemporary;
Expand Down
2 changes: 2 additions & 0 deletions src/components/launcheritem.h
Expand Up @@ -54,6 +54,7 @@ class LIPSTICK_EXPORT LauncherItem : public QObject
Q_PROPERTY(QStringList mimeType READ mimeType NOTIFY itemChanged)
Q_PROPERTY(QString titleUnlocalized READ titleUnlocalized NOTIFY itemChanged)
Q_PROPERTY(bool shouldDisplay READ shouldDisplay NOTIFY itemChanged)
Q_PROPERTY(bool isSandboxed READ isSandboxed NOTIFY itemChanged)
Q_PROPERTY(bool isValid READ isValid NOTIFY itemChanged)
Q_PROPERTY(bool isLaunching READ isLaunching WRITE setIsLaunching NOTIFY isLaunchingChanged)
Q_PROPERTY(bool isUpdating READ isUpdating WRITE setIsUpdating NOTIFY isUpdatingChanged)
Expand Down Expand Up @@ -85,6 +86,7 @@ public slots:
QStringList mimeType() const;
QString titleUnlocalized() const;
bool shouldDisplay() const;
bool isSandboxed() const;
bool isValid() const;
bool isLaunching() const;
bool isStillValid();
Expand Down

0 comments on commit 4783d6c

Please sign in to comment.