Workaround to close DF3 SpellBookFrame after skill scan

This commit is contained in:
MarkuruThunderhoof
2026-07-20 23:08:17 +03:00
parent f05d2cb380
commit e7b48b49fd
+4 -2
View File
@@ -296,7 +296,8 @@ end
-- the spellbook was already open. -- the spellbook was already open.
function RecipeRadar_SkillDB_ShowSpellbookFrame() function RecipeRadar_SkillDB_ShowSpellbookFrame()
if (not SpellBookFrame:IsVisible()) then local sbf = DF_SpellBookFrame or SpellBookFrame
if (not sbf:IsVisible()) then
ToggleSpellBook(BOOKTYPE_SPELL) ToggleSpellBook(BOOKTYPE_SPELL)
return true return true
end end
@@ -307,7 +308,8 @@ end
-- Closes the spellbook if it's visible and need_close is true. -- Closes the spellbook if it's visible and need_close is true.
function RecipeRadar_SkillDB_HideSpellbookFrame(need_close) function RecipeRadar_SkillDB_HideSpellbookFrame(need_close)
if (SpellBookFrame:IsVisible() and need_close) then local sbf = DF_SpellBookFrame or SpellBookFrame
if (sbf:IsVisible() and need_close) then
ToggleSpellBook(BOOKTYPE_SPELL) ToggleSpellBook(BOOKTYPE_SPELL)
end end