diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-25 18:24:52 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-25 18:24:52 +1000 |
| commit | d3fac6805f31894c277dc620314cac9cf8c6561b (patch) | |
| tree | f76a1e32078acadd777453b96660c6118fda59f3 /plugin/src/Caelestia/Internal/hyprdevices.cpp | |
| parent | plugin/appdb: delete when backing entries deleted (diff) | |
| download | caelestia-shell-d3fac6805f31894c277dc620314cac9cf8c6561b.tar.gz caelestia-shell-d3fac6805f31894c277dc620314cac9cf8c6561b.tar.bz2 caelestia-shell-d3fac6805f31894c277dc620314cac9cf8c6561b.zip | |
plugin/hypr: fix devices + better error handling
Also fix lock indicators
Diffstat (limited to 'plugin/src/Caelestia/Internal/hyprdevices.cpp')
| -rw-r--r-- | plugin/src/Caelestia/Internal/hyprdevices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/Internal/hyprdevices.cpp b/plugin/src/Caelestia/Internal/hyprdevices.cpp index 8f63d67..2c94d90 100644 --- a/plugin/src/Caelestia/Internal/hyprdevices.cpp +++ b/plugin/src/Caelestia/Internal/hyprdevices.cpp @@ -40,7 +40,7 @@ bool HyprKeyboard::main() const { return m_lastIpcObject.value("main").toBool(); } -bool HyprKeyboard::updateLastIpcObject(const QJsonObject& object) { +bool HyprKeyboard::updateLastIpcObject(QJsonObject object) { if (m_lastIpcObject == object) { return false; } @@ -89,7 +89,7 @@ QList<HyprKeyboard*> HyprDevices::keyboards() const { return m_keyboards; } -bool HyprDevices::updateLastIpcObject(const QJsonObject& object) { +bool HyprDevices::updateLastIpcObject(QJsonObject object) { const auto val = object.value("keyboards").toArray(); bool dirty = false; |