mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
wayland/idle-inhibit: use bindable .value() instead of implicit cast
Fixes compilation on some targets.
This commit is contained in:
1 parent
b8625aa098
commit
42420ea26d
1 file changed
+1
-1
@@ -13,7 +13,7 @@ namespace qs::wayland::idle_inhibit {
|
||||
using QtWaylandClient::QWaylandWindow;
|
||||
|
||||
IdleInhibitor::IdleInhibitor() {
|
||||
this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject : nullptr; });
|
||||
this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject.value() : nullptr; });
|
||||
}
|
||||
|
||||
QObject* IdleInhibitor::window() const { return this->bWindowObject; }
|
||||
|
||||
Reference in new issue
Block a user