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