View Single Post
10/04/14, 06:43 PM   #12
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
It seems that chat must be minimized after it is fully initialized. Lets call the function a bit later - when player is activated.

Add this code to the very end of the SetMySettings.lua:
Lua Code:
  1. EVENT_MANAGER:RegisterForEvent("SetMySettings", EVENT_PLAYER_ACTIVATED,
  2.    function(event)
  3.       EVENT_MANAGER:UnregisterForEvent("SetMySettings", event)
  4.       CHAT_SYSTEM:Minimize()
  5.    end)
(tested and working)
  Reply With Quote