allow multiple window updates (change window to windows)

This commit is contained in:
sawka 2023-01-31 17:57:26 -08:00
parent 5f27c97dbe
commit 381ed04153
2 changed files with 5 additions and 3 deletions

View File

@ -1852,8 +1852,10 @@ class Model {
else if ("cmd" in update) {
this.updateCmd(update.cmd);
}
if ("window" in update) {
this.updateWindow(update.window, false);
if ("windows" in update) {
for (let i=0; i<update.windows.length; i++) {
this.updateWindow(update.windows[i], false);
}
}
if ("screenwindows" in update) {
for (let i=0; i<update.screenwindows.length; i++) {

View File

@ -269,7 +269,7 @@ type PtyDataUpdateType = {
type ModelUpdateType = {
sessions? : SessionDataType[],
activesessionid? : string,
window? : WindowDataType,
windows? : WindowDataType[],
screenwindows? : ScreenWindowType[],
line? : LineType,
cmd? : CmdDataType,