Skip to content

Commit f1c6f16

Browse files
committed
Use Key Down CVar on TBC Anniversary as well
1 parent 9923e34 commit f1c6f16

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Options/Options.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ local AceConfigDialog = LibStub("AceConfigDialog-3.0")
99

1010
local error, select, pairs = error, select, pairs
1111
local WoWClassicEra = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)
12+
local WoWBCC = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC)
1213
local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
13-
local WoW10 = select(4, GetBuildInfo()) >= 100000
14+
local WoWRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)
1415
local SaveBindings = SaveBindings or AttemptToSaveBindings
1516

1617
-- GLOBALS: LibStub, UnitHasVehicleUI, GetModifiedClick, SetModifiedClick, SaveBindings, GetCurrentBindingSet, InCombatLockdown
@@ -123,14 +124,14 @@ local function generateOptions()
123124
name = L["Toggle actions on key press instead of release"],
124125
desc = L["Toggles actions immediately when you press the key, and not only on release. Note that the buttons need to be locked for actions to run on key press."],
125126
get = function(info)
126-
if WoW10 then
127+
if WoWRetail or WoWBCC then
127128
return GetCVarBool("ActionButtonUseKeyDown")
128129
else
129130
return Bartender4.db.profile.onkeydown
130131
end
131132
end,
132133
set = function(info, value)
133-
if WoW10 then
134+
if WoWRetail or WoWBCC then
134135
SetCVar("ActionButtonUseKeyDown", value)
135136
else
136137
Bartender4.db.profile.onkeydown = value

0 commit comments

Comments
 (0)