forked from quickshell/quickshell
all: mask various useless dbus errors
This commit is contained in:
parent
6572a7f61d
commit
ecc4a1249d
6 changed files with 106 additions and 61 deletions
|
@ -246,8 +246,13 @@ void DBusPropertyGroup::requestPropertyUpdate(DBusPropertyCore* property) {
|
|||
const QDBusPendingReply<QDBusVariant> reply = *call;
|
||||
|
||||
if (reply.isError()) {
|
||||
qCWarning(logDbusProperties).noquote() << "Error updating property" << propStr;
|
||||
qCWarning(logDbusProperties) << reply.error();
|
||||
if (!property->isRequired() && reply.error().type() == QDBusError::InvalidArgs) {
|
||||
qCDebug(logDbusProperties) << "Error updating non-required property" << propStr;
|
||||
qCDebug(logDbusProperties) << reply.error();
|
||||
} else {
|
||||
qCWarning(logDbusProperties).noquote() << "Error updating property" << propStr;
|
||||
qCWarning(logDbusProperties) << reply.error();
|
||||
}
|
||||
} else {
|
||||
this->tryUpdateProperty(property, reply.value().variant());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue