Add Gus Mueller’s contribution — always show menu item image when menu item title is empty.

This commit is contained in:
Brent Simmons committed 2026-01-08 20:56:22 -08:00
1 parent c635cb9d06
commit d94f37caa4
1 file changed
+1 -1
@@ -26,7 +26,7 @@ static void *kShouldShowImageKey = &kShouldShowImageKey;
- (NSImage *)rs_swizzledImage {
if (self.rs_shouldShowImage || [self rs_isToolbarItemRepresentation]) {
if (self.rs_shouldShowImage || [self rs_isToolbarItemRepresentation] || self.title.length < 1) {
// Call the original getter (now swapped to rs_swizzledImage)
return [self rs_swizzledImage];
}