mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
🏗 WIP: Broken services toggling
You can break it by opening the menu twice.
This commit is contained in:
@ -1298,9 +1298,9 @@
|
||||
C45B9147295607E200F4EC78 /* Services */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
C45B9148295607F400F4EC78 /* ServiceWrapper.swift */,
|
||||
C45E76132854A65300B4FE0C /* ServicesManager.swift */,
|
||||
C45B914D295608E300F4EC78 /* ValetServicesManager.swift */,
|
||||
C45B9148295607F400F4EC78 /* ServiceWrapper.swift */,
|
||||
C45B91522956123A00F4EC78 /* FakeServicesManager.swift */,
|
||||
);
|
||||
path = Services;
|
||||
|
@ -93,11 +93,6 @@ class ServicesManager: ObservableObject {
|
||||
public func broadcastServicesUpdated() {
|
||||
Task { @MainActor in
|
||||
self.serviceWrappers.forEach { wrapper in
|
||||
guard let service = wrapper.service else {
|
||||
return
|
||||
}
|
||||
|
||||
Log.perf("\(service.name): \(wrapper.status)")
|
||||
wrapper.objectWillChange.send()
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,10 @@ class ValetServicesManager: ServicesManager {
|
||||
for service in services {
|
||||
self[service.name]?.service = service
|
||||
}
|
||||
|
||||
for wrapper in serviceWrappers {
|
||||
wrapper.isBusy = false
|
||||
}
|
||||
}
|
||||
|
||||
// Broadcast that all services have been updated
|
||||
|
Reference in New Issue
Block a user