avaldes updated this revision to Diff 44294. avaldes added a comment.
I have added a new checkbox inside the suspend session delay and in button event handling. I wasn't able to make it work with the button event handling, but the checkbox does work with the logic when Suspend Session is enabled. Let me know if you know of a better way to do this. Here's how it looks now: F6364813: sth-checkbox.png <https://phabricator.kde.org/F6364813> REPOSITORY R122 Powerdevil CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D16425?vs=44208&id=44294 REVISION DETAIL https://phabricator.kde.org/D16425 AFFECTED FILES daemon/actions/bundled/handlebuttonevents.cpp daemon/actions/bundled/handlebuttonevents.h daemon/actions/bundled/handlebuttoneventsconfig.cpp daemon/actions/bundled/handlebuttoneventsconfig.h daemon/actions/bundled/suspendsession.cpp daemon/actions/bundled/suspendsession.h daemon/actions/bundled/suspendsessionconfig.cpp daemon/actions/bundled/suspendsessionconfig.h daemon/org.freedesktop.PowerManagement.xml daemon/powerdevilfdoconnector.cpp kcmodule/activities/activitywidget.cpp To: avaldes, broulik Cc: graesslin, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart