View Single Post
08/19/17, 01:50 PM   #21
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
It's one of your addons dealing with KEYBIND_STRIP. Just do a search.

It need to be manipulated with a callback on the scene. If not, you can have errors like this.

Basically to avoid the error, it should be :

Lua Code:
  1. THE_SCENE_WHICH_****_EVERYTHING:RegisterCallback("StateChange",  function(oldState, newState)
  2.     if newState == SCENE_SHOWING then
  3.         KEYBIND_STRIP:AddKeybindButtonGroup(KeybindStripDescriptor)
  4.     elseif newState == SCENE_HIDDEN then
  5.         KEYBIND_STRIP:RemoveKeybindButtonGroup(KeybindStripDescriptor)
  6.     end
  7. end)

Have fun searching.
  Reply With Quote