fix(mac): disable smoothing and await watchdog
parent
89d856a487
commit
7919019b67
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue