music plugin: delete all child widgets before adding buttons
This commit is contained in:
@@ -123,6 +123,8 @@ public class MusicListPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header.deleteAllChildren();
|
||||||
|
|
||||||
//Creation of the search and toggle status buttons
|
//Creation of the search and toggle status buttons
|
||||||
musicSearchButton = header.createChild(-1, WidgetType.GRAPHIC);
|
musicSearchButton = header.createChild(-1, WidgetType.GRAPHIC);
|
||||||
musicSearchButton.setSpriteId(SpriteID.GE_SEARCH);
|
musicSearchButton.setSpriteId(SpriteID.GE_SEARCH);
|
||||||
|
|||||||
Reference in New Issue
Block a user