focus: reset focus unit when hiding

This commit is contained in:
shagu
2019-06-30 11:24:22 +02:00
parent 9b261feb06
commit bf60d77d01
+1
View File
@@ -17,6 +17,7 @@ SLASH_PFCLEARFOCUS1, SLASH_PFCLEARFOCUS2 = '/clearfocus', '/pfclearfocus'
function SlashCmdList.PFCLEARFOCUS(msg)
if pfUI.uf and pfUI.uf.focus then
pfUI.uf.focus:Hide()
pfUI.uf.focus.unitname = nil
end
end