mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 13:03:07 +00:00
feat(workspace): when the sleep window is opened, the active window event is not triggered
This commit is contained in:
parent
15f5675ddd
commit
cf3d7a8642
@ -266,10 +266,12 @@ export class Workspace implements IWorkspace {
|
|||||||
});
|
});
|
||||||
this.windows = [...this.windows, window];
|
this.windows = [...this.windows, window];
|
||||||
this.editorWindowMap.set(window.id, window);
|
this.editorWindowMap.set(window.id, window);
|
||||||
if (!sleep) {
|
if (sleep) {
|
||||||
this.window = window;
|
this.emitChangeWindow();
|
||||||
await this.window.init();
|
return;
|
||||||
}
|
}
|
||||||
|
this.window = window;
|
||||||
|
await this.window.init();
|
||||||
this.emitChangeWindow();
|
this.emitChangeWindow();
|
||||||
this.emitChangeActiveWindow();
|
this.emitChangeActiveWindow();
|
||||||
this.window?.updateState(WINDOW_STATE.active);
|
this.window?.updateState(WINDOW_STATE.active);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user