Disable Current book when statistics are disabled (#3210)

pull/3213/head
Robert 7 years ago committed by Frans de Jonge
parent 56345fd8c0
commit b617efa21f

@ -624,7 +624,7 @@ function ReaderStatistics:addToMainMenu(menu_items)
kv_pairs = self:getCurrentStat(self.id_curr_book), kv_pairs = self:getCurrentStat(self.id_curr_book),
}) })
end, end,
enabled = not self:isDocless() enabled_func = function() return not self:isDocless() and self.is_enabled end,
}, },
{ {
text = _("All books"), text = _("All books"),

Loading…
Cancel
Save