okay found the problem.
As my brother told me earlier when I mentioned the problem to him. It seems nUI has been informed that when we join a group we are automatically shown as being in raid. Which means nUI is going through the raid group checks to decide which frames to display. Adding the check that there are more than 5 people in the group before switching to raid10 resolves the problem back to how it worked before ...
oooh deja vu effect ... Im sure I've done this all before rofl.
AddOns/nUI/Units/nUI_UnitPanel.lua
Before:
Lua Code:
if unit_info.in_raid then
-- 5.0.1 Change Start - Function name change
-- local size = GetNumRaidMembers();
local size = GetNumGroupMembers();
-- 5.0.1 Change End
if size > 25 and AutoSwitchPanels["raid40"] then
panel_mode = "raid40";
elseif size > 20 and AutoSwitchPanels["raid25"] then
panel_mode = "raid25";
elseif size > 15 and AutoSwitchPanels["raid20"] then
panel_mode = "raid20";
elseif size > 10 and AutoSwitchPanels["raid15"] then
panel_mode = "raid15";
elseif AutoSwitchPanels["raid10"] then
panel_mode = "raid10";
else
panel_mode = "party";
end
elseif unit_info.in_party then
panel_mode = "party";
end
After:
Lua Code:
if unit_info.in_raid then
-- 5.0.1 Change Start - Function name change
-- local size = GetNumRaidMembers();
local size = GetNumGroupMembers();
-- 5.0.1 Change End
if size > 25 and AutoSwitchPanels["raid40"] then
panel_mode = "raid40";
elseif size > 20 and AutoSwitchPanels["raid25"] then
panel_mode = "raid25";
elseif size > 15 and AutoSwitchPanels["raid20"] then
panel_mode = "raid20";
elseif size > 10 and AutoSwitchPanels["raid15"] then
panel_mode = "raid15";
elseif size > 5 and AutoSwitchPanels["raid10"] then
panel_mode = "raid10";
else
panel_mode = "party";
end
elseif unit_info.in_party then
panel_mode = "party";
end