Fixed algorithm menu.

This commit is contained in:
Oleg Sh
2024-03-28 17:52:28 +01:00
parent 1bc95c5991
commit 1adf364131
3 changed files with 11 additions and 5 deletions

View File

@@ -587,7 +587,7 @@ Editor.prototype.init = function()
devTools.style.left = 0;
resizeCanvas();
this.application.onPostLoadEvent();
this.application.onPostLoadEvent();
this.initAlgorithmList();
}

View File

@@ -1,5 +1,6 @@
let DisableEmscripten = false;
let PostLoadedCalled = false;
let editor = new Editor(document, window);
@@ -58,8 +59,12 @@ function handelImportGraph(files) {
function postLoadPage()
{
loadTexts();
editor.init();
if (!PostLoadedCalled)
{
loadTexts();
editor.init();
PostLoadedCalled = true;
}
}
$(document).ready(function ()