fixed button dups

This commit is contained in:
Libkyy
2022-06-05 20:27:00 +02:00
parent 373a4007ce
commit ef4988785f
2 changed files with 8 additions and 0 deletions

7
.idea/discord.xml generated Normal file
View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="PROJECT_FILES" />
<option name="description" value="" />
</component>
</project>

View File

@@ -131,6 +131,7 @@ public class DrawingBoard extends Panel implements DrawingEngine
public void setShapeButtons(ArrayList<Button> buttons) public void setShapeButtons(ArrayList<Button> buttons)
{ {
ShapeButtons.removeAll();
for (Button button : buttons) for (Button button : buttons)
{ {
ShapeButtons.add(button); ShapeButtons.add(button);