From 0685eecdadd01fc468871caffb9dc28b9e0a6f7e Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 27 Dec 2020 03:23:08 +0100 Subject: [PATCH] Simplify db migration toasts (#7063) xref https://www.mobileread.com/forums/showpost.php?p=4073920&postcount=17 --- plugins/coverbrowser.koplugin/bookinfomanager.lua | 2 +- plugins/statistics.koplugin/main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/coverbrowser.koplugin/bookinfomanager.lua b/plugins/coverbrowser.koplugin/bookinfomanager.lua index d211065b9..4a0c732ae 100644 --- a/plugins/coverbrowser.koplugin/bookinfomanager.lua +++ b/plugins/coverbrowser.koplugin/bookinfomanager.lua @@ -178,7 +178,7 @@ function BookInfoManager:createDB() db_conn:exec(string.format("PRAGMA user_version=%d;", BOOKINFO_DB_VERSION)) -- Say hi! - UIManager:show(InfoMessage:new{text =_("BookInfo cache database schema updated."), timeout = 3 }) + UIManager:show(InfoMessage:new{text =_("Book info cache database updated."), timeout = 3 }) end db_conn:close() self.db_created = true diff --git a/plugins/statistics.koplugin/main.lua b/plugins/statistics.koplugin/main.lua index 0a628f33f..abf01d90e 100644 --- a/plugins/statistics.koplugin/main.lua +++ b/plugins/statistics.koplugin/main.lua @@ -333,7 +333,7 @@ Do you want to create an empty database? end logger.info("ReaderStatistics: DB migration complete") - UIManager:show(InfoMessage:new{text =_("Statistics database schema updated."), timeout = 3 }) + UIManager:show(InfoMessage:new{text =_("Statistics database updated."), timeout = 3 }) elseif db_version > DB_SCHEMA_VERSION then logger.warn("ReaderStatistics: You appear to be using a database with an unknown schema version:", db_version, "instead of", DB_SCHEMA_VERSION) logger.warn("ReaderStatistics: Expect things to break in fun and interesting ways!")