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

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

No files matched your search

@@ -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