mirror of
https://github.com/MarkuruThunderhoof/RecipeRadar.git
synced 2026-10-11 16:10:04 +00:00
Workaround to close DF3 SpellBookFrame after skill scan
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user