Davide-sd / shutdown_or_switch

Plasma 5 widget to quickly access the shutdown options or switch user.
GNU General Public License v2.0
10 stars 10 forks source link

[Suggestion] Add an option to ask for confirmation #13

Open Gravemind2015 opened 5 months ago

Gravemind2015 commented 5 months ago

Hi, I am a new user of this widget and it's really useful, thanks for making it <3

I wanted to know if it was possible to add an option that, when enabled, would ask for confirmation after clicking on one of the actions (logout/lock screen/reboot etc.), kinda like default plasma behaviour. This could prevent immediate shutdown/reboot in case the user mis-clicked on the options (say, they wanted to click lock screen but instead accidentally selected reboot).

Context: Earlier I used to use the user switcher widget (clicking on widget>logout) to access all the power options, as plasma would only highlight/focus the one user selected (say, reboot) but also showed other options on the full screen interface. With plasma 6.1 however, they changed it so that only the selected option is shown now, as a confirmation screen. So I switched to this widget which works beautifully, as the user switcher widget lacks power controls :-)

Have a nice day, Regards, Gravemind