--- Update all indicators
-function OmaRF:UpdateAllIndicators()
- CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", updateIndicators);
- if OmaRF.running then
- C_TimerAfter(0.15, OmaRF.UpdateAllIndicators);
- end
-end
-
--- Used to update everything that is affected by the configuration
-function OmaRF:RefreshConfig()
- self:OnDisable(); -- clear everything
- if self.db.profile.enabled then
- CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", configureIndicators);
- watchedAuras = {};
- for _, pos in ipairs(positions) do
- for _, aura in ipairs(self.db.profile.indicators[pos]["auras"]) do
- watchedAuras[aura] = pos; -- TODO single aura only in one position
- end
- end
- majorAuras = {};
- for _, aura in ipairs(self.db.profile.majorAuras["auras"]) do
- majorAuras[aura] = true;
- end
- majorMax = OmaRF.db.profile.majorAuras["max"];
-
- if next(watchedAuras) ~= nil or next(majorAuras) ~= nil then
- self.running = true;
- C_TimerAfter(0.15, self.UpdateAllIndicators);
- end
- end