Skip to content

Commit

Permalink
filemanagermenu: fix classic mode items per page (koreader#11346)
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 committed Jan 13, 2024
1 parent 0ceb88a commit c4e9e6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/apps/filemanager/filemanagermenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ function FileManagerMenu:setUpdateItemTable()
sub_item_table = {
{
text_func = function()
return T(_("Items per page: %1"), FileChooser.perpage)
return T(_("Items per page: %1"), G_reader_settings:readSetting("items_per_page"))
end,
help_text = _([[This sets the number of items per page in:
- File browser, history and favorites in 'classic' display mode
- Search results and folder shortcuts
- File and folder selection
- Calibre and OPDS browsers/search results]]),
callback = function(touchmenu_instance)
local current_value = FileChooser.perpage
local current_value = G_reader_settings:readSetting("items_per_page")
local default_value = FileChooser.items_per_page_default
local widget = SpinWidget:new{
title_text = _("Items per page"),
Expand All @@ -204,7 +204,7 @@ function FileManagerMenu:setUpdateItemTable()
end,
callback = function(touchmenu_instance)
local current_value = FileChooser.font_size
local default_value = FileChooser.getItemFontSize(FileChooser.perpage)
local default_value = FileChooser.getItemFontSize(G_reader_settings:readSetting("items_per_page"))
local widget = SpinWidget:new{
title_text = _("Item font size"),
value = current_value,
Expand Down

0 comments on commit c4e9e6b

Please sign in to comment.