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