[statistics] Remove conversion message on new installations (#5120)

pull/5138/head
Robert 5 years ago committed by Frans de Jonge
parent 642aed240c
commit 93b6335421

@ -159,6 +159,7 @@ files["spec/unit/*"].globals = {
-- 631 - Line is too long
ignore = {
"211/__*",
"231/__",
"631",
"dummy",
}

@ -241,7 +241,13 @@ Do you want to create an empty database?
else -- first time convertion to sqlite database
self.convert_to_db = true
if not conn:exec("pragma table_info('book');") then
if #ReadHistory.hist > 0 then
local filename_first_history, quickstart_filename, __
if #ReadHistory.hist == 1 then
filename_first_history = ReadHistory.hist[1]["text"]
local quickstart_path = require("ui/quickstart").quickstart_filename
__, quickstart_filename = util.splitFilePathName(quickstart_path)
end
if #ReadHistory.hist > 1 or (#ReadHistory.hist == 1 and filename_first_history ~= quickstart_filename) then
local info = InfoMessage:new{
text =_([[
New version of statistics plugin detected.

Loading…
Cancel
Save