service/upower: do not crash when trying to set power profile w/o ppd

This commit is contained in:
outfoxxed 2025-05-13 17:07:51 -07:00
parent 48a56381a6
commit cb69c2d016
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 7 additions and 0 deletions

View file

@ -235,6 +235,7 @@ public:
void updateAllDirect();
void updateAllViaGetAll();
[[nodiscard]] QString toString() const;
[[nodiscard]] bool isConnected() const { return this->interface; }
void pushPropertyUpdate(DBusPropertyCore* property);
void requestPropertyUpdate(DBusPropertyCore* property);