GDevelop
GDevelop copied to clipboard
Not creating an object when the user Cancels the action on the "add a new object" modal.
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
Based on bonzillesmobilegames' request on the forum. Somehow related to https://github.com/4ian/GDevelop/issues/5938
When creating an object the user goes through the "Add a new object" button. Then, they choose the object type. However, if they changed their mind and click "Cancel", the app still creates the object on the object list.
In short, the button "Cancel" executes the outcome of the "Apply" button.
Suggested change
The "Cancel" button executes the task of the "x" button on the upper right of the modal: not adding any object to the object list. This change would be a better UX affordance.
Steps to reproduce
Add a new object from scratch Select any type of object Click the Cancel button
GDevelop platform
Desktop, Web, Mobile
GDevelop version
5.4.204
Platform info
OS (e.g. Windows, Linux, macOS, Android, iOS)
OS Version (e.g. Windows 10, macOS 10.15)
Browser(For Web) (e.g. Chrome, Firefox, Safari)
Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)
Additional context
No response