View Single Post
Old 06-02-2024, 02:43 PM   #1344
mullse01
Member
mullse01 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2024
Device: Kindle PW 3, Kobo Clara BW
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:

Quote:
menu_item : main : Reboot : dbg_msg : Are you sure you want to reboot?
chain_failure : skip -1
chain_success : power : reboot
(I know this is not how dbg_msg works, I'm just using it as a placeholder)
mullse01 is offline   Reply With Quote