Need to remove items after Subscribe()
This commit is contained in:
parent
d6d8b95a6d
commit
f2e15d076c
|
@ -533,9 +533,6 @@ TExpandoMenuBar::MouseUp(BPoint where)
|
|||
void
|
||||
TExpandoMenuBar::BuildItems()
|
||||
{
|
||||
RemoveItems(0, CountItems(), true);
|
||||
// remove all items
|
||||
|
||||
BMessenger self(this);
|
||||
TBarApp::Subscribe(self, &fTeamList);
|
||||
|
||||
|
@ -557,6 +554,9 @@ TExpandoMenuBar::BuildItems()
|
|||
}
|
||||
float itemHeight = -1.0f;
|
||||
|
||||
RemoveItems(0, CountItems(), true);
|
||||
// remove all items
|
||||
|
||||
if (settings->sortRunningApps)
|
||||
fTeamList.SortItems(CompareByName);
|
||||
|
||||
|
|
Loading…
Reference in New Issue