fixed: addFontTrait

This commit is contained in:
daboe01 committed 2026-01-28 21:41:15 +01:00
1 parent d8dd3d0660
commit 886a4a422f
1 file changed
+5 -1
+5 -1
View File
@@ -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;