From badf7aba844967c5d13e01079c12df758715167a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Sep 2026 12:37:52 +0200 Subject: ... --- accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp') diff --git a/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp b/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp index 6376b527..1fa236f6 100644 --- a/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp +++ b/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp @@ -43,8 +43,8 @@ Systemd::Systemd(QObject* parent) : QObject(parent) { this ); - QObject::connect(this->logindManager, &DBusLogindManager::PrepareForShutdown, this, &Systemd::shutdown); - QObject::connect(this->logindManager, &DBusLogindManager::PrepareForSleep, this, &Systemd::sleep); + QObject::connect(this->logindManager, &DBusLogindManager::PrepareForShutdown, this, &Systemd::prepareForShutdown); + QObject::connect(this->logindManager, &DBusLogindManager::PrepareForSleep, this, &Systemd::prepareForSleep); QObject::connect(this->logindSession, &DBusLogindSession::Lock, this, &Systemd::lock); QObject::connect(this->logindSession, &DBusLogindSession::Unlock, this, &Systemd::unlock); QObject::connect(this->logindSessionProperties, &DBusProperties::PropertiesChanged, this, &Systemd::onLogindSessionPropertiesChanged); @@ -148,6 +148,7 @@ void Systemd::setIdleHint(bool idle) { this->logindSession->SetIdleHint(idle); } bool Systemd::lockedHint() { return this->logindSession->lockedHint(); } void Systemd::setLockedHint(bool locked) { this->logindSession->SetLockedHint(locked); } void Systemd::lockSession() { this->logindSession->call("Lock"); } +void Systemd::sleep() { this->logindManager->Sleep(true); } void Systemd::suspend() { this->logindManager->Suspend(true); } void Systemd::hibernate() { this->logindManager->Hibernate(true); } -- cgit v1.2.3