@netless/window-manager 1.0.10-beta.2 → 1.0.10-beta.3
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/App/AppProxy.ts +3 -3
package/package.json
CHANGED
package/src/App/AppProxy.ts
CHANGED
|
@@ -139,7 +139,7 @@ export class AppProxy implements PageRemoveService {
|
|
|
139
139
|
this.manager.safeUpdateAttributes(["apps", this.id, Fields.FullPath], path);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
public async baseInsertApp(skipUpdate = false): Promise<{ appId: string; app: NetlessApp }> {
|
|
142
|
+
public async baseInsertApp(skipUpdate = false, boxStatus: TeleBoxState = TELE_BOX_STATE.Normal): Promise<{ appId: string; app: NetlessApp }> {
|
|
143
143
|
const params = this.params;
|
|
144
144
|
if (!params.kind) {
|
|
145
145
|
throw new Error("[WindowManager]: kind require");
|
|
@@ -153,7 +153,7 @@ export class AppProxy implements PageRemoveService {
|
|
|
153
153
|
appImpl,
|
|
154
154
|
params.options,
|
|
155
155
|
appParams?.appOptions,
|
|
156
|
-
this.manager.useBoxesStatus ?
|
|
156
|
+
this.manager.useBoxesStatus ? boxStatus : undefined,
|
|
157
157
|
params.forceTop,
|
|
158
158
|
params.forceNormal,
|
|
159
159
|
params.isDragContent
|
|
@@ -288,7 +288,7 @@ export class AppProxy implements PageRemoveService {
|
|
|
288
288
|
const params = this.params;
|
|
289
289
|
const AppProxyClass = getExtendClass(AppProxy, WindowManager.extendClass);
|
|
290
290
|
const appProxy = new AppProxyClass(params, this.manager, this.id, this.isAddApp);
|
|
291
|
-
await appProxy.baseInsertApp(true);
|
|
291
|
+
await appProxy.baseInsertApp(true, currentAppState?.boxStatus);
|
|
292
292
|
this.boxManager?.updateBoxState(currentAppState);
|
|
293
293
|
}
|
|
294
294
|
|