inability to connect to DBus.Properties resolved
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 13s
Python / lint-format (pull_request) Successful in 20s
Python / test (pull_request) Successful in 51s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m3s

This commit is contained in:
2026-06-03 16:51:15 +02:00
parent 7dbce0bf8c
commit f9ab1e2a10
2 changed files with 71 additions and 29 deletions
+10 -6
View File
@@ -6,6 +6,9 @@
#include <cstdint>
#include <qqmlintegration.h>
class QDBusServiceWatcher;
class QTimer;
namespace ZShell {
class LidWatcher : public QObject {
@@ -26,16 +29,17 @@ class LidWatcher : public QObject {
[[nodiscard]] LidState state() const;
private:
void queryInitialState();
bool m_available;
LidState m_state = Opened;
void tryConnect();
void queryLidState();
void onPropertiesChanged(const QString& interface,
const QVariantMap& changed,
const QStringList& invalidated);
QDBusServiceWatcher* m_watcher;
QTimer* m_pollTimer;
bool m_available;
LidState m_state = Opened;
Q_SIGNALS:
void availableChanged();
void stateChanged();