fix broken universe switching logic

This commit is contained in:
2023-08-27 17:53:11 +02:00
parent 2b5bbdcd56
commit 3cd115c488
2 changed files with 5 additions and 13 deletions

View File

@ -62,6 +62,10 @@ export class UserAPI {
_deleteUniverseFromInterface = (universe: string) => {
delete this.app.universes[universe];
this.app.settings.saveApplicationToLocalStorage(
this.app.universes,
this.app.settings
);
this.app.openBuffersModal();
}

View File

@ -1,22 +1,10 @@
const global_text =`
// Global buffer: a central buffer to command them all.
// ====================================================
// The global buffer is a special buffer used to control
// the general behavior of your universe. It is meant to
// be used as a "control room" for your universe. You can
// make use of several commands to control the execution
// flow of all the files:
// - script(universe/universes: number): run script(s)
`
const local_buffer =`
// Local buffer: nine buffers to write your algorithms.
`
const init_buffer=`
// Init buffer: a buffer to initialize the universe.
// This universe is runned once when the universe is
// loaded!
`
const note_buffer='// Notes buffer: a buffer to write your notes.'
@ -36,4 +24,4 @@ export const tutorial_universe = {
},
init: { candidate: init_buffer, committed: init_buffer, evaluations: 0 },
notes: { candidate: note_buffer },
}
}