Statistics: Re-enable in FM

Fix #7844
Regression since #7728
This commit is contained in:
NiLuJe
2021-06-14 16:15:23 +02:00
parent 5310381106
commit 522aa49e63

View File

@@ -139,7 +139,8 @@ ReaderStatistics.default_settings = {
}
function ReaderStatistics:init()
if self:isDocless() then
-- Disable in PIC documents (but not the FM, as we want to be registered to the FM's menu).
if self.ui and self.ui.document and self.ui.document.is_pic then
return
end