From 886a4a422fd1b5946fbe09e522ecca2462939a1d Mon Sep 17 00:00:00 2001 From: daboe01 Date: Wed, 28 Jan 2026 21:41:15 +0100 Subject: [PATCH] fixed: addFontTrait --- AppKit/CPFontManager.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPFontManager.j b/AppKit/CPFontManager.j index f2159359d..d10a27e44 100644 --- a/AppKit/CPFontManager.j +++ b/AppKit/CPFontManager.j @@ -208,7 +208,11 @@ CPRemoveTraitFontAction = 7; - (@action)addFontTrait:(id)sender { - var tag = [sender tag]; + var tag = sender; + + if ([sender respondsToSelector:@selector(tag)]) + tag = [sender tag]; + _activeChange = tag == nil ? @{} : @{ @"addTraits": tag }; _fontAction = CPAddTraitFontAction;