Don't open generated sprite sheet if the params specified so

This commit is contained in:
David Capello 2019-01-09 20:41:29 -03:00
parent 9257b9e244
commit 2c58169cbb

View File

@ -828,7 +828,7 @@ void ExportSpriteSheetCommand::onExecute(Context* context)
Preferences::instance().removeDocument(newDocument.get());
}
if (docPref.spriteSheet.openGenerated()) {
if (params.openGenerated()) {
// Setup a filename for the new document in case that user didn't
// save the file/specified one output filename.
if (filename.empty()) {