Restart KOReader: add a ConfirmBox instead of a plain InfoMessage (#9853)

This commit is contained in:
zwim
2022-12-03 21:29:13 +01:00
committed by GitHub
parent fa9f0acf5e
commit d1cd2a1c8d
15 changed files with 67 additions and 95 deletions

View File

@@ -39,7 +39,7 @@ if Device:canReboot() then
text = _("Reboot the device"),
keep_menu_open = true,
callback = function()
UIManager:reboot()
UIManager:askForReboot()
end
}
end
@@ -48,7 +48,7 @@ if Device:canPowerOff() then
text = _("Power off"),
keep_menu_open = true,
callback = function()
UIManager:powerOff()
UIManager:askForPowerOff()
end
}
end