Added safeguard against GetCurrentBindingSet() returning nil in rare cases during login
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ function BT4ActionBars:ReassignBindings()
|
||||
end
|
||||
end
|
||||
end
|
||||
SaveBindings(GetCurrentBindingSet())
|
||||
SaveBindings(GetCurrentBindingSet() or 1)
|
||||
end
|
||||
|
||||
-- Creates a new bar object based on the id and the specified config
|
||||
|
||||
+2
-2
@@ -84,7 +84,7 @@ local function getOptions()
|
||||
name = L["Self-Cast Modifier"],
|
||||
desc = L["Select the Self-Cast Modifier"],
|
||||
get = function(info) return GetModifiedClick("SELFCAST") end,
|
||||
set = function(info, value) SetModifiedClick("SELFCAST", value); SaveBindings(GetCurrentBindingSet()) end,
|
||||
set = function(info, value) SetModifiedClick("SELFCAST", value); SaveBindings(GetCurrentBindingSet() or 1) end,
|
||||
values = { NONE = L["None"], ALT = L["ALT"], SHIFT = L["SHIFT"], CTRL = L["CTRL"] },
|
||||
},
|
||||
selfcast_nl = {
|
||||
@@ -109,7 +109,7 @@ local function getOptions()
|
||||
name = L["Focus-Cast Modifier"],
|
||||
desc = L["Select the Focus-Cast Modifier"],
|
||||
get = function(info) return GetModifiedClick("FOCUSCAST") end,
|
||||
set = function(info, value) SetModifiedClick("FOCUSCAST", value); SaveBindings(GetCurrentBindingSet()) end,
|
||||
set = function(info, value) SetModifiedClick("FOCUSCAST", value); SaveBindings(GetCurrentBindingSet() or 1) end,
|
||||
values = { NONE = L["None"], ALT = L["ALT"], SHIFT = L["SHIFT"], CTRL = L["CTRL"] },
|
||||
},
|
||||
focuscast_nl = {
|
||||
|
||||
Reference in New Issue
Block a user