mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
actionbar: fix custom button count layouts
* only show valid layout options for the actionbar size * use fallback layout if necessary when bar size is changed
This commit is contained in:
@@ -660,6 +660,12 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
return
|
||||
end
|
||||
|
||||
-- we changed bar size and stored layout is invalid, fallback
|
||||
if not pfGridmath[buttons][BarLayoutFormfactor(formfactor)] then
|
||||
formfactor = BarLayoutOptions(buttons)[1]
|
||||
C.bars["bar"..i].formfactor = formfactor
|
||||
end
|
||||
|
||||
local border = C.appearance.border.default
|
||||
if C.appearance.border.actionbars ~= "-1" then
|
||||
border = C.appearance.border.actionbars
|
||||
|
||||
Reference in New Issue
Block a user