Actually set sorting hints in plugins (#6770)

This commit is contained in:
ezdiy
2020-10-09 07:40:23 +02:00
committed by GitHub
parent 0ed4680967
commit b8fa553407
7 changed files with 4 additions and 4 deletions

2
base

Submodule base updated: f89af6f13b...535bc4c8c2

View File

@@ -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",
}

View File

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

View File

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

View File

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

View File

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

View File

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