Quantcast WoWInterface - View Single Post - Problem in dropdown menu
View Single Post
02-19-20, 10:58 AM   #4
gmarco
A Frostmaul Preserver
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 290
Thanks so much for your help.

It works nicely if I put the unregister event in my addon:

Lua Code:
  1. local ADDON = ...
  2.  
  3. local size={}
  4. local prgname = "|cffffd200MyFonts|r"
  5. local string_format = string.format
  6.  
  7. local BUTTON_HEIGHT = 40
  8. local BUTTON_WIDTH = 150
  9.  
  10. local lsmfontsmenu
  11. local gmfontsmenu
  12.  
  13. UIParent:UnregisterEvent("GLOBAL_MOUSE_DOWN")
  14.  
  15. -- saved variables
  16. GMFONTS = GMFONTS or {}
  17.  
  18. blabla blabla


But what I get as side effect of this ?

May I break something else ?

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote