Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
166 stars 7 forks source link

Restore Free Slot Display Option/Functionality #417

Open StormFX opened 1 year ago

StormFX commented 1 year ago

In 10.0.7, the code for displaying the free slot count on the backpack was changed in a manner that forces it to be always be displayed. This isn't very intuitive and doesn't really make a lot of sense.

The Problem

MainMenuBarBackpackMixin:OnPlayerEnteringWorld() was changed from:

function MainMenuBarBackpackMixin:OnPlayerEnteringWorld()
    self:SetCountShown(GetCVarBool("displayFreeBagSlots"));
    self:UpdateFreeSlots();
end

To:

function MainMenuBarBackpackMixin:OnPlayerEnteringWorld()
    self:SetCountShown(true);
    self:UpdateFreeSlots();
end

Additionally, the registration for the CVAR_UPDATE event and its relevant function were removed.

The Solution

Either restore the above functionality (IE, revert the changes made in 10.0.7) or, as a potentially better option, add an Edit Mode setting and option to the Bag Bar to toggle the display of the free slot count.