Fix ACPI poweroffs disabling exit confirmations
Use confirm_exit_cmdl to skip the confirmation prompt without saving it in the config
This commit is contained in:
@@ -413,7 +413,7 @@ void
|
|||||||
plat_power_off(void)
|
plat_power_off(void)
|
||||||
{
|
{
|
||||||
plat_mouse_capture(0);
|
plat_mouse_capture(0);
|
||||||
confirm_exit = 0;
|
confirm_exit_cmdl = 0;
|
||||||
nvr_save();
|
nvr_save();
|
||||||
config_save();
|
config_save();
|
||||||
|
|
||||||
|
@@ -697,7 +697,7 @@ plat_get_exe_name(char *s, int size)
|
|||||||
void
|
void
|
||||||
plat_power_off(void)
|
plat_power_off(void)
|
||||||
{
|
{
|
||||||
confirm_exit = 0;
|
confirm_exit_cmdl = 0;
|
||||||
nvr_save();
|
nvr_save();
|
||||||
config_save();
|
config_save();
|
||||||
|
|
||||||
|
@@ -383,7 +383,7 @@ win_notify_dlg_closed(void)
|
|||||||
void
|
void
|
||||||
plat_power_off(void)
|
plat_power_off(void)
|
||||||
{
|
{
|
||||||
confirm_exit = 0;
|
confirm_exit_cmdl = 0;
|
||||||
nvr_save();
|
nvr_save();
|
||||||
config_save();
|
config_save();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user