@netless/telebox-insider 0.2.6 → 0.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/telebox-insider",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "license": "MIT",
@@ -385,11 +385,11 @@ export class TeleBoxManager {
385
385
  const box = boxes[0];
386
386
  this.focusBox({ focus: false, box });
387
387
  box.destroy();
388
- if (this.boxes.length <= 0) {
389
- this.setMaximized(false);
390
- this.setMinimized(false);
391
- }
392
388
  if (!skipUpdate) {
389
+ if (this.boxes.length <= 0) {
390
+ this.setMaximized(false);
391
+ this.setMinimized(false);
392
+ }
393
393
  this.events.emit(TELE_BOX_MANAGER_EVENT.Removed, boxes);
394
394
  }
395
395
  return box;
@@ -412,11 +412,11 @@ export class TeleBoxManager {
412
412
  const boxes = this.boxes.splice(0, this.boxes.length);
413
413
  this.maxTitleBar.setBoxes(this.boxes);
414
414
  boxes.forEach((box) => box.destroy());
415
- if (this.boxes.length <= 0) {
416
- this.setMaximized(false);
417
- this.setMinimized(false);
418
- }
419
415
  if (!skipUpdate) {
416
+ if (this.boxes.length <= 0) {
417
+ this.setMaximized(false);
418
+ this.setMinimized(false);
419
+ }
420
420
  this.events.emit(TELE_BOX_MANAGER_EVENT.Removed, boxes);
421
421
  }
422
422
  return boxes;