mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 09:40:42 +00:00
Show user what is about to close (fix #2030)
This commit is contained in:
parent
de768a020d
commit
b96d8c8c30
@ -284,6 +284,9 @@ bool DocView::onCloseView(Workspace* workspace, bool quitting)
|
||||
{
|
||||
// see if the sprite has changes
|
||||
while (m_document->isModified()) {
|
||||
// Show user what they are about to close
|
||||
ctx->setActiveView(this);
|
||||
|
||||
// ask what want to do the user with the changes in the sprite
|
||||
int ret = Alert::show(
|
||||
fmt::format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user