Concentration Tracker

This addon tracks and displays the concentration of each profession, shows restoration times, and provides an overview of when the maximum concentration will be restored.

File Details

ConcentrationTracker_01-04-26.zip

  • R
  • Apr 1, 2026
  • 42.28 KB
  • 682
  • 12.0.5+1
  • Retail

File Name

ConcentrationTracker_01-04-26.zip

Supported Versions

  • 12.0.5
  • 12.0.1
[3.8.1] — 2026-04-01

English

- Bugfix — `GetRestorationTimes` could throw `attempt to compare nil with number` when saved rows had no valid `maxQuantity` (or very old installs without `MAX_CONCENTRATION`). All caps now go through `GetEffectiveMaxQuantity()` (`tonumber` + minimum 1, then fallback 1000).
- Robustness — `lastUpdate` / `lastKnownQuantity` are sanitized (`tonumber`, clamp `lastUpdate` to not be in the future, non-negative elapsed time) so ticker/notifications do not error on bad data.

[3.8] — 2026-04-01

English

- MAX_CONCENTRATION — explicit fallback constant (1000) when `maxQuantity` is missing from saved/API data, avoiding nil math.
- Notifications — profession fallback in notification text uses localized `L["profession"]` instead of a hardcoded Ukrainian string.
- Minimap — `minimap.hide` is now wired: checkbox in Settings (“Hide minimap icon”), `ApplyMinimapButtonVisibility()` on load and on toggle; migration sets `hide` if absent.
- UX — main window and settings window registered with `UISpecialFrames` so Escape closes them like standard UI.
- Locales — new strings `hide_minimap`, `hide_minimap_tooltip` (English + Ukrainian; other locales fall back to English via existing merge).
- UpdateLanguageTexts — always reloads `L` from current language so settings-only updates get correct strings.
- Reset to defaults — minimap checkbox and visibility stay in sync after a full settings reset.