View Single Post
12-13-11, 11:18 PM   #4
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Smashbolt View Post
Sorry, I was a bit unclear there.

I tried the code as I'd written in my OP, the code you suggested (without "local run"), and because I saw it mentioned somewhere, I tried replacing the third line with SendChatMessage("/reload ui").

None of them work.

The ShadowedUF profile change does happen in all cases though, so I know the click handler is active. It's just the UI reload that never happens.

I read in the API reference that ReloadUI() is a protected function. I'd think that shouldn't matter since it's an onclick, but is it possible that kgPanels interferes with it somehow?
Unless the kgPanels frame is a secure frame, which it isn't, then it won't work. Do you have Lua Errors turned off? The UI usually pops up with an error when trying to execute protected functions from a non-secure source. Whenever I need an on-click ReloadUI I have to use a secure frame.
  Reply With Quote