Disable Current book when statistics are disabled (#3210)

This commit is contained in:
Robert
2017-09-12 18:35:23 +02:00
committed by Frans de Jonge
parent 56345fd8c0
commit b617efa21f

View File

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