mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-23 16:58:27 +01:00
allow multiple window updates (change window to windows)
This commit is contained in:
parent
5f27c97dbe
commit
381ed04153
@ -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++) {
|
||||
|
@ -269,7 +269,7 @@ type PtyDataUpdateType = {
|
||||
type ModelUpdateType = {
|
||||
sessions? : SessionDataType[],
|
||||
activesessionid? : string,
|
||||
window? : WindowDataType,
|
||||
windows? : WindowDataType[],
|
||||
screenwindows? : ScreenWindowType[],
|
||||
line? : LineType,
|
||||
cmd? : CmdDataType,
|
||||
|
Loading…
Reference in New Issue
Block a user