From 7919019b67fd9f7fdaeadbc689b50008d28b27ee Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 9 Dec 2025 22:09:25 +0100 Subject: [PATCH] fix(mac): disable smoothing and await watchdog --- apps/macos/Sources/Clawdis/CritterStatusLabel.swift | 2 +- apps/macos/Sources/Clawdis/GatewayChannel.swift | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/macos/Sources/Clawdis/CritterStatusLabel.swift b/apps/macos/Sources/Clawdis/CritterStatusLabel.swift index 668203d3c..23b9502fa 100644 --- a/apps/macos/Sources/Clawdis/CritterStatusLabel.swift +++ b/apps/macos/Sources/Clawdis/CritterStatusLabel.swift @@ -243,7 +243,7 @@ enum CritterIconRenderer { NSGraphicsContext.saveGraphicsState() if let context = NSGraphicsContext(bitmapImageRep: rep) { NSGraphicsContext.current = context - context.interpolationQuality = .none + context.imageInterpolation = .none context.cgContext.setShouldAntialias(false) defer { NSGraphicsContext.restoreGraphicsState() } diff --git a/apps/macos/Sources/Clawdis/GatewayChannel.swift b/apps/macos/Sources/Clawdis/GatewayChannel.swift index e2726874b..59ca34592 100644 --- a/apps/macos/Sources/Clawdis/GatewayChannel.swift +++ b/apps/macos/Sources/Clawdis/GatewayChannel.swift @@ -38,7 +38,9 @@ private actor GatewayChannelActor { init(url: URL, token: String?) { self.url = url self.token = token - self.startWatchdog() + Task { [weak self] in + await self?.startWatchdog() + } } private func startWatchdog() {