mutable menu item text for 'Toggle floating punctuation'
This commit is contained in:
1 parent
bc960dcf01
commit
80732b6bf6
1 file changed
+5
-1
@@ -128,7 +128,11 @@ function ReaderTypeset:addToMainMenu(tab_item_table)
|
||||
sub_item_table = self:genStyleSheetMenu(),
|
||||
})
|
||||
table.insert(tab_item_table.typeset, {
|
||||
text = _("Toggle floating punctuation"),
|
||||
text_func = function()
|
||||
return self.floating_punctuation == 1 and
|
||||
_("Turn off floating punctuation") or
|
||||
_("Turn on floating punctuation")
|
||||
end,
|
||||
callback = function () self:toggleFloatingPunctuation() end,
|
||||
})
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user