Closed ReverendKilljoy closed 4 years ago
For those wanting to compile their own the following diff fixes the crash on Big Sur.
diff --git a/Classes/Session/TSSTPageView.m b/Classes/Session/TSSTPageView.m
index 13b2ed6..86e3b9b 100644
--- a/Classes/Session/TSSTPageView.m
+++ b/Classes/Session/TSSTPageView.m
@@ -304,6 +304,7 @@ - (void)drawRect:(NSRect)aRect
CALayer* newLayer = [[CALayer alloc]init];
+ NSGraphicsContext *gcontext = NSGraphicsContext.currentContext;
NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
NSColor * color = [NSKeyedUnarchiver unarchiveObjectWithData: [defaults valueForKey: TSSTBackgroundColor]];
self.layer.backgroundColor = [color CGColor];
@@ -429,7 +430,7 @@ - (void)drawRect:(NSRect)aRect
[newLayer addSublayer:label];
}
- [NSGraphicsContext restoreGraphicsState];
+ [gcontext restoreGraphicsState];
if(acceptingDrag)
{
Thanks @waha - if you have time please submit a PR that we can merge easily.
Thanks for sorting it out for me :)
MacBook Pro (15-inch, 2017); 2.9GHz Quad-core i7; 16GB RAM; Radeon Pro 560 4GB driving 2560 x 1080 in clamshell mode
OS 11.0 Beta (20A5343j)
The program crashes immediately on launch, crash report excerpt below: