Thanks Baertram for pointing this out. It's my first time creating an addon with an UI
There are so many tricks to learn that you can't even know at first
I've rewritten the PreHook part to use LibCustomMenu for Farm Buddy. I'll try your posted snippet later, thanks!
Keldor