Skip to content

Commit

Permalink
appIndicator: Ignore unknown property errors for optional properties
Browse files Browse the repository at this point in the history
Closes: ubuntu#370
3v1n0 committed Sep 30, 2022
1 parent 3156873 commit 00f30a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion appIndicator.js
Original file line number Diff line number Diff line change
@@ -281,7 +281,11 @@ var AppIndicator = class AppIndicatorsAppIndicator {
this._proxyPropertyList.includes(p)).forEach(p =>
Util.refreshPropertyOnProxy(this._proxy, p, {
skipEqualityCheck: p.endsWith('Pixmap'),
}).catch(e => logError(e)),
}).catch(e => {
if (!AppIndicator.OPTIONAL_PROPERTIES.includes(p) ||
!e.matches(Gio.DBusError, Gio.DBusError.UNKNOWN_PROPERTY))
logError(e);
}),
);
}

0 comments on commit 00f30a1

Please sign in to comment.