修复旧版编译器报错:局部变量遮蔽 model

This commit is contained in:
gentpan committed 2026-09-13 09:17:18 +05:00
1 parent a97b592ae6
commit 5e16e65233
1 file changed
+4 -4
@@ -86,11 +86,11 @@ public final class AppController: NSObject, NSApplicationDelegate {
}
}
let model = self.model
let appModel = model
Task { [weak self] in
await model.hub.update(model.demand)
await model.hub.start { [weak self] snapshot in
model.handle(snapshot)
await appModel.hub.update(appModel.demand)
await appModel.hub.start { [weak self] snapshot in
appModel.handle(snapshot)
self?.menuBar.refreshImages()
}
}