mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Actually set sorting hints in plugins (#6770)
This commit is contained in:
2
base
2
base
Submodule base updated: f89af6f13b...535bc4c8c2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user