WeakAuras/WeakAuras
Florian Berthold 6078989cb1 fix(login): defer downgrade popup, guard data, include CoA classes
Three fixes addressing the reported 'auras silently vanish on next save'
bug, plus collateral robustness in the same code path:

1. WeakAuras.lua PLAYER_LOGIN handler (~L1297-1308): the downgrade branch
   fired StaticPopup_Show('WEAKAURAS_CONFIRM_REPAIR', ...) synchronously
   inside the event handler. On the CoA reworked StaticPopup system this
   fires too early and silently fails to show the dialog, which means
   neither OnAccept nor OnCancel ever runs, so Private.Login() is never
   called. With no displays loaded, the next PLAYER_LOGOUT serializes an
   empty table over WeakAurasSaved and the user loses all their auras.
   Wrap the call in C_Timer.After(0, ...) so it fires after the event
   frame stack has unwound and the popup system is ready.

   This is the most likely root cause of the user report 'my auras don't
   save anymore' that surfaced on the PTR last week.

2. WeakAuras.lua WEAKAURAS_CONFIRM_REPAIR popup (~L2263-2277): OnShow and
   OnCancel both unconditionally dereferenced self.data.reason. If the
   popup is ever fired with nil or malformed data this throws and blocks
   Private.Login() from running via the OnCancel fallback. Guard with a
   nil check and default reason to 'unknown' (treated as the automatic /
   downgrade path, which is the safe default that still invokes Login).

3. Types.lua WeakAuras.class_types (~L1187): only populated from
   CLASS_SORT_ORDER, which on CoA contains only the 11 vanilla classes.
   The 21 custom CoA classes were silently missing from every class
   filter dropdown in the options UI. Add a fallback loop over
   LOCALIZED_CLASS_NAMES_MALE for anything CLASS_SORT_ORDER didn't
   already register, mirroring the pattern the spec builder uses at
   ~L3829.
2026-05-24 17:38:22 +02:00
..
ArchiveTypes WeakAuras.Mixin 2020-09-16 23:03:25 +03:00
BaseRegions (fix/texture): Desaturate state lost on SetTexture 2026-02-16 11:43:50 -07:00
Libs re-add LibCustomGlow 2026-02-17 05:58:11 -07:00
Locales 5.21.2 2026-02-16 11:47:36 -07:00
Media (feat/MoverSizer): Rework Magnetic Edit 2026-02-16 08:22:22 -07:00
PowerAurasMedia init 2020-06-02 23:40:06 +03:00
RegionTypes (fix/texture): Desaturate state lost on SetTexture 2026-02-16 11:43:50 -07:00
SubRegionTypes 5.20.7 2026-02-16 08:28:24 -07:00
AnchorToWeakAuras.lua 5.19.6 2025-04-03 21:03:11 +02:00
Animations.lua 5.19.10 2025-05-31 22:54:39 +02:00
AuraEnvironment.lua 5.20.3 2025-09-13 18:02:26 +02:00
AuraWarnings.lua (feat/TTS) Add Text-to-speech via awesome_wotlk 2025-08-25 21:41:59 +02:00
Bindings.xml from retail 2025-01-27 03:28:33 +01:00
BossMods.lua (fix/BossMods): Handle unsupported DBM state in Unified 2026-02-16 08:26:28 -07:00
BuffTrigger2.lua (feat/BT2): Introduce inRange trigger and fix missing polling for ignoreInvisible (#78) 2026-02-16 08:20:36 -07:00
CoAClassColors.lua Add CoAClassColors.lua + bump to 5.22.0 2026-05-09 00:44:48 +02:00
Compatibility.lua (fix/WeakAuras): Resolve long-standing frame level overflow 2026-02-16 11:38:32 -07:00
Conditions.lua 5.21.2 2026-02-16 11:47:36 -07:00
DebugLog.lua 5.19.6 2025-04-03 21:03:11 +02:00
DefaultOptions.lua cleanup 2020-07-01 17:42:02 +03:00
DiscordList.lua 5.21.2 2026-02-16 11:47:36 -07:00
embeds.xml re-add LibCustomGlow 2026-02-17 05:58:11 -07:00
Features.lua 5.20.0 2025-07-22 16:49:18 +02:00
GenericTrigger.lua (feat/Prototypes) use WeakAurasMiniTalent in the Talent Known Trigger 2026-02-16 08:29:16 -07:00
History.lua 5.19.6 2025-04-03 21:03:11 +02:00
Init.lua 5.21.2 2026-02-16 11:47:36 -07:00
LibGroupTalentsWrapper.lua 5.19.6 2025-04-03 21:03:11 +02:00
LICENSE init 2020-06-02 23:40:06 +03:00
locales.xml 5.19.8 2025-04-13 16:03:55 +02:00
Modernize.lua 5.20.6 2026-02-16 08:20:31 -07:00
Profiling.lua link to ascension discord. Move support link 2025-10-20 13:08:08 -07:00
Prototypes.lua (fix/Prototypes) Power: Combo points not updating in vehicle 2026-02-16 11:44:38 -07:00
SubscribableObject.lua 5.19.6 2025-04-03 21:03:11 +02:00
Templates.lua (fix/WeakAuras) BandAid: Limit frame levels to prevent exceeding UI restrictions 2026-02-16 11:37:02 -07:00
TimeMachine.lua 5.20.0 2025-07-22 16:49:18 +02:00
TimeUtil.lua (fix/TimeUtil): fix non localised TIME_UNIT_DELIMITER 2025-09-14 20:46:58 +02:00
Transmission.lua (fix/Transmission): prevent missing controlledChildren when importing newer groups without their original parent 2026-02-16 11:48:35 -07:00
TSUHelpers.lua 5.20.7 2026-02-16 08:28:24 -07:00
Types.lua fix(login): defer downgrade popup, guard data, include CoA classes 2026-05-24 17:38:22 +02:00
Types_ClassicPlus.lua (feat/Prototypes) Add prefix negation also to zoneId and encounterId load checks 2026-02-16 08:23:23 -07:00
Types_Wrath.lua (feat/Prototypes) Add prefix negation also to zoneId and encounterId load checks 2026-02-16 08:23:23 -07:00
WeakAuras.lua fix(login): defer downgrade popup, guard data, include CoA classes 2026-05-24 17:38:22 +02:00
WeakAuras.toc Add CoAClassColors.lua + bump to 5.22.0 2026-05-09 00:44:48 +02:00