Actually set sorting hints in plugins (#6770)

reviewable/pr6776/r1
ezdiy 4 years ago committed by GitHub
parent 0ed4680967
commit b8fa553407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit f89af6f13b077688ad6dabeaacf41f17c3d753f9
Subproject commit 535bc4c8c2b5a93ef9610d4c42deaac3173df40d

@ -3,5 +3,4 @@ return {
name = "autostandby",
fullname = _("Auto Standby"),
description = _([[Put into standby on no input, wake up from standby on UI input]]),
sorting_hint = "device",
}

@ -46,6 +46,7 @@ end
function AutoStandby:addToMainMenu(menu_items)
menu_items.autostandby = {
sorting_hint = "device",
text = _("Auto-standby settings"),
sub_item_table = {
{

@ -3,5 +3,4 @@ return {
name = "autosuspend",
fullname = _("Auto suspend"),
description = _([[Suspends the device after a period of inactivity.]]),
sorting_hint = "device",
}

@ -134,6 +134,7 @@ end
function AutoSuspend:addToMainMenu(menu_items)
menu_items.autosuspend = {
sorting_hint = "device",
text = _("Autosuspend timeout"),
callback = function()
local InfoMessage = require("ui/widget/infomessage")

@ -6,5 +6,4 @@ return {
Automatically turns the page after a set period of time.
Hold to set the scrolling distance.]]),
sorting_hint = "navi",
}

@ -112,6 +112,7 @@ end
function AutoTurn:addToMainMenu(menu_items)
menu_items.autoturn = {
sorting_hint = "navi",
text_func = function() return self:_enabled() and T(_("Autoturn (%1 s)"), self.autoturn_sec)
or _("Autoturn") end,
checked_func = function() return self:_enabled() end,

Loading…
Cancel
Save