fixed the search field mistakenly taken focus if the option was turned off

git [02-11-18 - 15:47]
fixed the search field mistakenly taken focus if the option was turned off
Filename
IIfA/IIfASceneFuncs.lua
diff --git a/IIfA/IIfASceneFuncs.lua b/IIfA/IIfASceneFuncs.lua
index 5f8e0bf..ea9c300 100644
--- a/IIfA/IIfASceneFuncs.lua
+++ b/IIfA/IIfASceneFuncs.lua
@@ -115,11 +115,11 @@ function IIfA:ToggleInventoryFrame()
 		SetGameCameraUIMode(true)
 		IIfA:GuiResizeScroll()
     	IIfA:RefreshInventoryScroll()
-		IIFA_GUI_SearchBox:TakeFocus()
 	end
 	if not IIfA.data.dontFocusSearch then
-		IIfA:SaveFrameInfo("ToggleInventoryFrame")
+		IIFA_GUI_SearchBox:TakeFocus()
 	end
+	IIfA:SaveFrameInfo("ToggleInventoryFrame")
 end