mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ConfigDialog: Check alt_name_text if name_text isn't set,
as it is used for the "Set as default" popup. This allows having that text accurate on widgets without an actual name_text (e.g., the font size wheel). Fix #7231 Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
This commit is contained in:
@@ -337,6 +337,7 @@ Note that your selected font size is not affected by this setting.]]),
|
||||
options = {
|
||||
{
|
||||
name = "font_size",
|
||||
alt_name_text = _("Font size"),
|
||||
item_text = tableOfNumbersToTableOfStrings(DCREREADER_CONFIG_FONT_SIZES),
|
||||
item_align_center = 1.0,
|
||||
spacing = 15,
|
||||
|
||||
@@ -472,7 +472,7 @@ function ConfigOption:init()
|
||||
option_items[d] = option_item
|
||||
option_item.items = option_items
|
||||
option_item.name = self.options[c].name
|
||||
option_item.name_text = name_text
|
||||
option_item.name_text = name_text or self.options[c].alt_name_text
|
||||
option_item.item_text = self.options[c].item_text
|
||||
option_item.values = self.options[c].values
|
||||
option_item.args = self.options[c].args
|
||||
@@ -514,7 +514,7 @@ function ConfigOption:init()
|
||||
option_items[d] = option_item
|
||||
option_item.items = option_items
|
||||
option_item.name = self.options[c].name
|
||||
option_item.name_text = name_text
|
||||
option_item.name_text = name_text or self.options[c].alt_name_text
|
||||
option_item.values = self.options[c].values
|
||||
option_item.args = self.options[c].args
|
||||
option_item.event = self.options[c].event
|
||||
|
||||
Reference in New Issue
Block a user