fix(mac): disable smoothing and await watchdog

This commit is contained in:
Peter Steinberger
2025-12-09 22:09:25 +01:00
parent 89d856a487
commit 7919019b67
2 changed files with 4 additions and 2 deletions

View File

@@ -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() }

View File

@@ -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() {