Update Chart.hx

This commit is contained in:
Frakits
2025-08-07 21:07:33 +03:00
committed by GitHub
parent bcbfa90f37
commit 41474738c7
+2 -2
View File
@@ -278,7 +278,7 @@ class Chart {
CoolUtil.safeSaveFile(chartPath, Json.stringify(filteredChart, null, saveSettings.prettyPrint == true ? Flags.JSON_PRETTY_PRINT : null));
if (saveSettings.overrideExistingMeta == true || !FileSystem.exists(metaPath))
if (meta != null && (saveSettings.overrideExistingMeta || !FileSystem.exists(metaPath)))
CoolUtil.safeSaveFile(metaPath, makeMetaSaveable(meta));
#end
return filteredChart;
@@ -331,4 +331,4 @@ typedef ChartSaveSettings = {
var ?saveGlobalEvents:Bool;
var ?prettyPrint:Bool;
var ?folder:String;
}
}