Fix duplicate traffic updates

This commit is contained in:
世界 committed 2026-01-16 20:08:33 +08:00
1 parent 751cf13634
commit 9d4ce37e94
2 files changed
+97 -25

No files matched your search

+1 -1
View File
@@ -495,7 +495,7 @@ public class StatusBarController: NSObject, NSMenuDelegate {
if shouldConnect {
if commandClient == nil {
commandClient = CommandClient(.status)
commandClient!.$status
commandClient!.statusPublisher
.receive(on: DispatchQueue.main)
.sink { [weak self] status in
self?.updateSpeedDisplay(status: status)