dockview 4.9.0 → 4.10.0

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview
3
- * @version 4.9.0
3
+ * @version 4.10.0
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -10277,8 +10277,8 @@
10277
10277
  accessor: this,
10278
10278
  isVisible: true,
10279
10279
  });
10280
- this.registerPanel(view);
10281
10280
  this.doAddGroup(view, relativeLocation, options.size);
10281
+ this.registerPanel(view);
10282
10282
  this.doSetGroupActive(view);
10283
10283
  return view;
10284
10284
  }
@@ -11627,6 +11627,10 @@
11627
11627
  const disposable = api.onDidTitleChange((event) => {
11628
11628
  setTitle(event.title);
11629
11629
  });
11630
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11631
+ if (title !== api.title) {
11632
+ setTitle(api.title);
11633
+ }
11630
11634
  return () => {
11631
11635
  disposable.dispose();
11632
11636
  };