<table><tr><td style="">avaldes updated this revision to Diff 44294.<br />avaldes added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16425">View Revision</a></tr></table><br /><div><div><p>I have added a new checkbox inside the suspend session delay and in button event handling.</p>

<p>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.</p>

<p>Let me know if you know of a better way to do this.</p>

<p>Here's how it looks now: <a href="https://phabricator.kde.org/F6364813" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6364813: sth-checkbox.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R122 Powerdevil</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D16425?vs=44208&id=44294">https://phabricator.kde.org/D16425?vs=44208&id=44294</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16425">https://phabricator.kde.org/D16425</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>daemon/actions/bundled/handlebuttonevents.cpp<br />
daemon/actions/bundled/handlebuttonevents.h<br />
daemon/actions/bundled/handlebuttoneventsconfig.cpp<br />
daemon/actions/bundled/handlebuttoneventsconfig.h<br />
daemon/actions/bundled/suspendsession.cpp<br />
daemon/actions/bundled/suspendsession.h<br />
daemon/actions/bundled/suspendsessionconfig.cpp<br />
daemon/actions/bundled/suspendsessionconfig.h<br />
daemon/org.freedesktop.PowerManagement.xml<br />
daemon/powerdevilfdoconnector.cpp<br />
kcmodule/activities/activitywidget.cpp</div></div></div><br /><div><strong>To: </strong>avaldes, broulik<br /><strong>Cc: </strong>graesslin, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>