Commit 26b11c3e authored by Romain Casati's avatar Romain Casati
Browse files

Properly waiting for notebook loading.

parent d6ed4f73
Pipeline #405632 passed with stages
in 2 minutes and 27 seconds
...@@ -84,6 +84,11 @@ function(Basthon, BasthonGoodies, pako, Base64, dialog) { ...@@ -84,6 +84,11 @@ function(Basthon, BasthonGoodies, pako, Base64, dialog) {
(see kernelselector.js). (see kernelselector.js).
*/ */
await init(async function () { await init(async function () {
if( !that.notebook._fully_loaded ) {
await new Promise(function (resolve, reject) {
that.events.on('notebook_loaded.Notebook', resolve);
});
}
if( !window.basthonEmptyNotebook && !await that.loadFromQS() ) if( !window.basthonEmptyNotebook && !await that.loadFromQS() )
that.notebook.loadFromStorage(); that.notebook.loadFromStorage();
}, "Chargement du contenu du notebook...", true); }, "Chargement du contenu du notebook...", true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment