HaikuDepot: Make sure to pick up changed package action labels
This commit is contained in:
@@ -671,8 +671,15 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
fPackageActions = actions;
|
fPackageActions = actions;
|
||||||
if (!clearNeeded)
|
if (!clearNeeded) {
|
||||||
|
int32 index = 0;
|
||||||
|
for (int32 i = fPackageActions.CountItems() - 1; i >= 0; i--) {
|
||||||
|
const PackageActionRef& action = fPackageActions.ItemAtFast(i);
|
||||||
|
BButton* button = (BButton*)fButtons.ItemAtFast(index++);
|
||||||
|
button->SetLabel(action->Label());
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user