Quit app? Changes may not be saved. - Always quits anyways

As described in the title:
press X (close application) → you get a message: “Quit app? Changes may not be saved.” → When you press “No” it quits anyways. App quits no matter what you choose.

Windows 10, windows app.