mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 21:44:22 +00:00
Remove (now) unnecessary update_screen_for_document() after saving process
If the sprite is locked and we cannot redraw the Editor, some defered invalidations will be update the screen correctly.
This commit is contained in:
parent
b699b92a3a
commit
4e5860ce66
@ -200,8 +200,6 @@ void SaveFileBaseCommand::saveAsDialog(const ContextReader& reader, const char*
|
|||||||
else
|
else
|
||||||
documentWriter->incrementVersion();
|
documentWriter->incrementVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
update_screen_for_document(document);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//static
|
//static
|
||||||
@ -255,7 +253,6 @@ void SaveFileCommand::onExecute(Context* context)
|
|||||||
|
|
||||||
save_document_in_background(context, documentWriter, true,
|
save_document_in_background(context, documentWriter, true,
|
||||||
m_filenameFormat.c_str());
|
m_filenameFormat.c_str());
|
||||||
update_screen_for_document(documentWriter);
|
|
||||||
}
|
}
|
||||||
// If the document isn't associated to a file, we must to show the
|
// If the document isn't associated to a file, we must to show the
|
||||||
// save-as dialog to the user to select for first time the file-name
|
// save-as dialog to the user to select for first time the file-name
|
||||||
@ -312,7 +309,6 @@ void SaveFileCopyAsCommand::onExecute(Context* context)
|
|||||||
{
|
{
|
||||||
ContextWriter writer(reader);
|
ContextWriter writer(reader);
|
||||||
writer.document()->setFilename(old_filename.c_str());
|
writer.document()->setFilename(old_filename.c_str());
|
||||||
update_screen_for_document(writer.document());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user