Fix HTML5 build issue

This commit is contained in:
EliteMasterEric 2024-01-10 20:58:06 -05:00
parent 90dd067aa0
commit 06964ce1e3

View file

@ -5333,6 +5333,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
if (displayAutosavePopup)
{
displayAutosavePopup = false;
#if sys
Toolkit.callLater(() -> {
var absoluteBackupsPath:String = Path.join([Sys.getCwd(), ChartEditorImportExportHandler.BACKUPS_PATH]);
this.infoWithActions('Auto-Save', 'Chart auto-saved to ${absoluteBackupsPath}.', [
@ -5342,6 +5343,9 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
}
]);
});
#else
// TODO: No auto-save on HTML5?
#end
}
moveSongToScrollPosition();