🔧 chore(deps/bindings): 同步直接依赖与原生窗口类型

- 将代码直接使用的 golang.org/x/sync 标记为直接依赖
- 为 Wails OperationResult 绑定补充 applied 可选字段
- 在构造阶段同步反序列化 applied 以保持前后端类型一致
This commit is contained in:
Syngnat
2026-07-23 08:47:38 +08:00
parent 7e129fca35
commit 3e02c81471
2 changed files with 3 additions and 1 deletions

View File

@@ -1695,6 +1695,7 @@ export namespace nativewindow {
id?: string;
bounds?: WindowBounds;
visibilityRevision?: number;
applied?: boolean;
static createFrom(source: any = {}) {
return new OperationResult(source);
@@ -1707,6 +1708,7 @@ export namespace nativewindow {
this.id = source["id"];
this.bounds = this.convertValues(source["bounds"], WindowBounds);
this.visibilityRevision = source["visibilityRevision"];
this.applied = source["applied"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {