firmware: ability to shutdown after upgrade#10264
Conversation
|
I was thinking something similar but without a persistent option using a checkbox in the reboot dialog. Probably going to write this from scratch while testing which is in this case easier than doing review cycles. |
Sure, rewrite it but this is not persistent and in the dialog box :) |
|
well it is persistent: it would be more flexible to have this as an optional parameter for update/upgrade actions so it can be used for API-based maintenance too |
Yeah ok. It flips back immediately after being used. It's a persistent variable, not a persistent option. |
|
As a general note the Power menu has "Power Off" and we should follow that terminology. |
It seemed to me that only user facing power off is used, so I just did the things the user sees and kept shutdown for the variables. |
Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:
Details
This PR uses the dialog box that lets a user know that the upgrade will initiate a restart, to present the user with the ability to power off instead. If no choice is made after 30 seconds, it automatically restarts.
Maybe the countdown should be removed and just wait for an answer, but it seems like ample time, and the dialog box shows up immediately after a user action, so no chance to be forgotten.
Related issue
Closes: #10245