WeakAuras

WeakAuras

206M Downloads

OptionsPrivate.CreateFrame could do less on /wa command

mrbuds opened this issue ยท 0 comments

commented

OptionsPrivate.CreateFrame could create less frames

https://github.com/WeakAuras/WeakAuras2/blob/main/WeakAurasOptions/OptionsFrames/OptionsFrame.lua#L513-L520

  frame.texturePicker = OptionsPrivate.TexturePicker(frame)
  frame.iconPicker = OptionsPrivate.IconPicker(frame)
  frame.modelPicker = OptionsPrivate.ModelPicker(frame)
  frame.importexport = OptionsPrivate.ImportExport(frame)
  frame.texteditor = OptionsPrivate.TextEditor(frame)
  frame.codereview = OptionsPrivate.CodeReview(frame)
  frame.update = OptionsPrivate.UpdateFrame(frame)
  frame.debugLog = OptionsPrivate.DebugLog(frame)

This execute quite a lot of code that is not needed right now, there is room for some refactoring