client: add noWarning option

This commit is contained in:
jean-emmanuel 2026-03-02 10:48:36 +01:00
parent 91fb688d9d
commit 27e3e6f1b3
3 changed files with 7 additions and 1 deletions

View file

@ -1024,7 +1024,9 @@ class Editor {
pushHistory(indexes) {
this.unsavedSession = true
if (!ENV.noWarning) {
this.unsavedSession = true
}
if (this.historyState > -1) {
this.history.splice(0, this.historyState + 1)