fix(mac): disable smoothing and await watchdog
This commit is contained in:
@@ -243,7 +243,7 @@ enum CritterIconRenderer {
|
|||||||
NSGraphicsContext.saveGraphicsState()
|
NSGraphicsContext.saveGraphicsState()
|
||||||
if let context = NSGraphicsContext(bitmapImageRep: rep) {
|
if let context = NSGraphicsContext(bitmapImageRep: rep) {
|
||||||
NSGraphicsContext.current = context
|
NSGraphicsContext.current = context
|
||||||
context.interpolationQuality = .none
|
context.imageInterpolation = .none
|
||||||
context.cgContext.setShouldAntialias(false)
|
context.cgContext.setShouldAntialias(false)
|
||||||
defer { NSGraphicsContext.restoreGraphicsState() }
|
defer { NSGraphicsContext.restoreGraphicsState() }
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,9 @@ private actor GatewayChannelActor {
|
|||||||
init(url: URL, token: String?) {
|
init(url: URL, token: String?) {
|
||||||
self.url = url
|
self.url = url
|
||||||
self.token = token
|
self.token = token
|
||||||
self.startWatchdog()
|
Task { [weak self] in
|
||||||
|
await self?.startWatchdog()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func startWatchdog() {
|
private func startWatchdog() {
|
||||||
|
|||||||
Reference in New Issue
Block a user