PojavLauncher icon indicating copy to clipboard operation
PojavLauncher copied to clipboard

[BUG] Buttons with 0 height or 0 width will not be deleted before the controlmap is saved.

Open Muggle2077 opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug

Buttons with 0 height or 0 width will not be deleted before the controlmap is saved.

The log file and images/videos

No.

Steps To Reproduce

1. Open the PojavLauncher.
2. Click on "CUSTOM CONTROLS".
3. Add some buttons and change their sizes to 0.0 x 100.0 or 100.0 x 0.0.
4. Save.

You will see that those buttons with 0 height or 0 width is saved. And if you want to modify the controlmap again, you can't select them anymore and if you try to add some other buttons, those buttons will affect their alignments.

Expected Behavior

Buttons with 0 height or 0 width should be deleted before the controlmap is saved.

Platform

- PojavLauncher version: edelweiss-20240531-bdc7f33-v3_openjdk

Anything else?

I have no idea about whether it is intended. You can delete those buttons by editing the json file. So, it might be of low priority.

Muggle2077 avatar Jun 10 '24 14:06 Muggle2077