remote control: ignore unsaved changes on /SESSION/CREATE

This commit is contained in:
jean-emmanuel 2024-06-22 12:08:22 +02:00
parent ed6489a794
commit c06107a07f
2 changed files with 3 additions and 1 deletions

View file

@ -204,7 +204,7 @@ Save state session to `path.state`.
#### `/SESSION/CREATE`
Create a new empty session
Create a new empty session. Unsaved changes will be lost.
----
#### `/SESSION/OPEN path.json`

View file

@ -266,6 +266,8 @@ var callbacks = {
},
'/SESSION/CREATE': function(args) {
editor.unsavedSession = false
sessionManager.create()
},