@netless/window-manager 1.0.10-beta.0 → 1.0.10-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +3 -3
package/package.json
CHANGED
package/src/AppManager.ts
CHANGED
|
@@ -356,6 +356,7 @@ export class AppManager {
|
|
|
356
356
|
this.focusByAttributes(this.attributes.apps);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
+
await this._attributesUpdateCallback(this.attributes.apps);
|
|
359
360
|
internalEmitter.emit("updateManagerRect");
|
|
360
361
|
boxEmitter.on("move", this.onBoxMove);
|
|
361
362
|
boxEmitter.on("resize", this.onBoxResize);
|
|
@@ -367,7 +368,6 @@ export class AppManager {
|
|
|
367
368
|
this.addAppsChangeListener();
|
|
368
369
|
this.addAppCloseListener();
|
|
369
370
|
this.addBoxesStatusChangeListener();
|
|
370
|
-
await this._attributesUpdateCallback(this.attributes.apps);
|
|
371
371
|
this.refresher.add("maximized", () => {
|
|
372
372
|
return autorun(() => {
|
|
373
373
|
const maximized = this.attributes.maximized;
|
|
@@ -467,6 +467,7 @@ export class AppManager {
|
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
private notifyBoxesStatusChange = debounce(() => {
|
|
470
|
+
this.boxManager?.setBoxesStatus(this.attributes.boxesStatus);
|
|
470
471
|
const entries = Object.entries(this.attributes.boxesStatus);
|
|
471
472
|
if (entries.length > 0) {
|
|
472
473
|
entries.forEach(([appId, status]) => {
|
|
@@ -476,14 +477,13 @@ export class AppManager {
|
|
|
476
477
|
}
|
|
477
478
|
});
|
|
478
479
|
}
|
|
479
|
-
},
|
|
480
|
+
}, 100);
|
|
480
481
|
|
|
481
482
|
public addBoxesStatusChangeListener = () => {
|
|
482
483
|
this.refresher.add("boxesStatus", () => {
|
|
483
484
|
return safeListenPropsUpdated(
|
|
484
485
|
() => this.attributes.boxesStatus,
|
|
485
486
|
() => {
|
|
486
|
-
this.boxManager?.setBoxesStatus(this.attributes.boxesStatus);
|
|
487
487
|
this.notifyBoxesStatusChange();
|
|
488
488
|
}
|
|
489
489
|
);
|