Skip to content

Commit

Permalink
Fixed additional errors with settings rework
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne committed May 21, 2024
1 parent dfad44d commit c7d5da5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions System/API/UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ br.api.ui = function(self)
ui.alwaysCdNever = function(thisOption)
-- Option Dropdown Requires
-- {"|cff008000Always", "|cff0000ffCD", "|cffff0000Never"}
if br.data.settings[br.selectedSpec][br.selectedProfile]["Rotation Options"] == nil then return 0 end
thisOption = br.data.settings[br.selectedSpec][br.selectedProfile]["Rotation Options"][thisOption] ~= nil and
ui.value(thisOption, "Rotation Options") or
ui.value(thisOption, "Base Options")
Expand All @@ -31,6 +32,7 @@ br.api.ui = function(self)
ui.alwaysCdAoENever = function(thisOption, minUnits, enemyCount)
-- Option Dropdown Requires
-- {"Always", "|cff008000AOE", "|cffffff00AOE/CD", "|cff0000ffCD", "|cffff0000Never"}
if br.data.settings[br.selectedSpec][br.selectedProfile]["Rotation Options"] == nil then return 0 end
thisOption = br.data.settings[br.selectedSpec][br.selectedProfile]["Rotation Options"][thisOption] ~= nil and
ui.value(thisOption, "Rotation Options") or
ui.value(thisOption, "Base Options")
Expand Down

0 comments on commit c7d5da5

Please sign in to comment.