set title from the default title in slides if undefined

pull/1/head
ansuz 4 years ago
parent 5d5677e4ad
commit 858de83984

@ -360,6 +360,7 @@ define([
var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadataLazy())); var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadataLazy()));
if (backColor) { metadata.backColor = backColor; } if (backColor) { metadata.backColor = backColor; }
if (textColor) { metadata.color = textColor; } if (textColor) { metadata.color = textColor; }
if (!metadata.title) { metadata.title = metadata.defaultTitle; }
metadataMgr.updateMetadata(metadata); metadataMgr.updateMetadata(metadata);
framework.localChange(); framework.localChange();
}; };

Loading…
Cancel
Save