fix(mac): disable smoothing and await watchdog
This commit is contained in:
@@ -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() }
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user