@netless/telebox-insider 0.3.0-beta.7 → 0.3.0-beta.8

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.
@@ -2877,6 +2877,13 @@ class AppMenu {
2877
2877
  c(className) {
2878
2878
  return `${this.namespace}-${className}`;
2879
2879
  }
2880
+ setContainer(container) {
2881
+ if (this.container) {
2882
+ this.container.remove();
2883
+ }
2884
+ this.container = container;
2885
+ this.init();
2886
+ }
2880
2887
  createDefaultAppMenu() {
2881
2888
  this.badge.classList.add(this.c("app-menu-badge"));
2882
2889
  this.menuView.classList.add(this.c("app-menu-tooltip"));
@@ -3053,6 +3060,9 @@ class TeleBoxManager {
3053
3060
  collector2.setVisible(minimized$.value);
3054
3061
  collector2.setReadonly(readonly$.value);
3055
3062
  collector2.setDarkMode(this._darkMode$.value);
3063
+ if (this.useBoxesStatus && this.appMenu) {
3064
+ this.appMenu.setContainer(collector2.$appMenuContainer);
3065
+ }
3056
3066
  this._sideEffect.add(() => {
3057
3067
  collector2.getBoxesStatus = () => {
3058
3068
  return this.boxesStatus$;