GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Not creating an object when the user Cancels the action on the "add a new object" modal.

Open LuniMoon opened this issue 7 months ago • 0 comments

Is there an existing issue for this?

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

LuniMoon avatar Jul 02 '24 10:07 LuniMoon