Preserve back_and_forth during restart

Add new key "previous_workspace_name" to the json dump of the root container.
This commit is contained in:
Albert Safin
2018-12-10 21:51:30 +07:00
parent f08119298e
commit 64ab1f42b7
5 changed files with 29 additions and 3 deletions

View File

@ -651,6 +651,11 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
y(integer, con->depth);
}
if (inplace_restart && con->type == CT_ROOT && previous_workspace_name) {
ystr("previous_workspace_name");
ystr(previous_workspace_name);
}
y(map_close);
}