Deskbar: Fix window updating bug #11865

We must toggle the expanded state of new windows if we are in
VERTICAL expando mode with Expand New Teams on.

The vertical part of the check got dropped accidentally in hrev48817

Thanks jstressman for reporting.

Fixes #11865
This commit is contained in:
John Scipione 2015-02-23 14:58:53 -05:00
parent ae30ad6e23
commit 548661da7a

View File

@ -659,7 +659,7 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name,
} else
AddItem(item);
if (settings->superExpando && settings->expandNewTeams)
if (fVertical && settings->superExpando && settings->expandNewTeams)
item->ToggleExpandState(false);
SizeWindow(1);