Changeset View
Changeset View
Standalone View
Standalone View
src/dbusrunner.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 67 | this, [this, requestedServiceName](const QString &serviceName, const QString &oldOwner, const QString &newOwner) { | |||
---|---|---|---|---|---|
79 | if (!oldOwner.isEmpty()) { | 79 | if (!oldOwner.isEmpty()) { | ||
80 | m_matchingServices.remove(serviceName); | 80 | m_matchingServices.remove(serviceName); | ||
81 | } | 81 | } | ||
82 | }); | 82 | }); | ||
83 | } else { | 83 | } else { | ||
84 | //don't check when not wildcarded, as it could be used with DBus-activation | 84 | //don't check when not wildcarded, as it could be used with DBus-activation | ||
85 | m_matchingServices << requestedServiceName; | 85 | m_matchingServices << requestedServiceName; | ||
86 | } | 86 | } | ||
87 | 87 | if (service->property(QStringLiteral("X-Plasma-Request-Actions-Once")).toBool()) { | |||
88 | requestActions(); | ||||
89 | } else { | ||||
88 | connect(this, &AbstractRunner::prepare, this, &DBusRunner::requestActions); | 90 | connect(this, &AbstractRunner::prepare, this, &DBusRunner::requestActions); | ||
89 | } | 91 | } | ||
92 | } | ||||
90 | 93 | | |||
91 | DBusRunner::~DBusRunner() = default; | 94 | DBusRunner::~DBusRunner() = default; | ||
92 | 95 | | |||
93 | void DBusRunner::requestActions() | 96 | void DBusRunner::requestActions() | ||
94 | { | 97 | { | ||
95 | clearActions(); | 98 | clearActions(); | ||
96 | m_actions.clear(); | 99 | m_actions.clear(); | ||
97 | 100 | | |||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |