mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +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.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