View Single Post
Old 06-03-2024, 10:29 AM   #1347
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 156
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
Quote:
Originally Posted by mullse01 View Post
Hello,

I've been poring over the NM guides, but I haven't been able to find a clear answer: is there a way to display a confirmation dialog in NickelMenu before an action takes place?

For example, with the "power : reboot" command, is there a way to display a dialog that asks you to confirm or cancel the reboot, and then have a chain_success/chain_failure that then takes (or doesn't take) the action?

Something like this:



(I know this is not how dbg_msg works, I'm just using it as a placeholder)
I know that is a good idea.
However, for this sample, the objective of having a reboot command in Nickelmenu is for the user to be able to reboot their device easily rather than take a manual reboot with the power button.
hatuluang is offline   Reply With Quote