When closing toast the buttons in the unsaved changes popup could be worded better so people don't have to understand the context behind the "yes" button.
Current popup:

Example from godot:

Example from blender:

My suggestion is to follow what the above two examples do and replace "yes" with either to "discard changes" or "don't save". In addition adding a "save" button would be nice as well.
When closing toast the buttons in the unsaved changes popup could be worded better so people don't have to understand the context behind the "yes" button.
Current popup:

Example from godot:

Example from blender:

My suggestion is to follow what the above two examples do and replace "yes" with either to "discard changes" or "don't save". In addition adding a "save" button would be nice as well.