修复旧版编译器报错:局部变量遮蔽 model
This commit is contained in:
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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user