Mercurial > wow > askmrrobot
diff CombatLog.lua @ 189:21a69c63fee8 v92
Added BfA auto-logging back for now.
author | yellowfive |
---|---|
date | Mon, 19 Oct 2020 11:19:56 -0700 |
parents | a3507735dfd9 |
children |
line wrap: on
line diff
--- a/CombatLog.lua Tue Oct 13 17:09:06 2020 -0700 +++ b/CombatLog.lua Mon Oct 19 11:19:56 2020 -0700 @@ -313,6 +313,14 @@ end end +-- sometimes the game doesn't repaint checkboxes when it should... doing this forces it to do so +local function setCheckboxChecked(chk, val) + chk:SetChecked(val) + chk:SetChecked(not val) + chk:SetChecked(val) + chk:SetText(chk:GetText()) +end + -- refresh the state of the tab based on current settings function Amr:RefreshLogUi() if not _btnToggle then return end @@ -334,6 +342,7 @@ end local all = isAllAutoLoggingEnabled() + --setCheckboxChecked(_chkAutoAll, all) _chkAutoAll:SetChecked(all) for i, instanceId in ipairs(Amr.InstanceIdsOrdered) do @@ -341,7 +350,8 @@ Amr.db.profile.Logging.Auto[instanceId] = {} end for k, difficultyId in pairs(Amr.Difficulties) do - _autoChecks[instanceId][difficultyId]:SetChecked(Amr.db.profile.Logging.Auto[instanceId][difficultyId]) + setCheckboxChecked(_autoChecks[instanceId][difficultyId], Amr.db.profile.Logging.Auto[instanceId][difficultyId]) + --_autoChecks[instanceId][difficultyId]:SetChecked(Amr.db.profile.Logging.Auto[instanceId][difficultyId]) end end end