mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Add Gus Mueller’s contribution — always show menu item image when menu item title is empty.
This commit is contained in:
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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user