fix: force learner on when base db is missing

This commit is contained in:
Xurkon
2026-06-05 20:23:29 -05:00
parent a0409eef8c
commit 3eda8d01ed
5 changed files with 75 additions and 5 deletions
+13
View File
@@ -51,7 +51,17 @@ local function HasAscensionQuestObjectiveData(questId)
return IsAscensionProtected("QUEST", questId, 10)
end
local function IsBaseDatabaseMissing()
return QuestieDB
and QuestieDB.IsBaseDatabaseMissing
and QuestieDB:IsBaseDatabaseMissing()
end
local function GetDataSourceMode()
if IsBaseDatabaseMissing() then
return "learner"
end
local settings = Questie
and Questie.dbLearner
and Questie.dbLearner.global
@@ -470,6 +480,9 @@ end
function QuestieLearner:IsEnabled()
if not EnsureLearnedData() then return false end
if IsBaseDatabaseMissing() then
return true
end
return Questie.dbLearner.global.settings.enabled
end