From ea7c84b1747474bc3a093438042a75c3d3ac7be1 Mon Sep 17 00:00:00 2001 From: Mitch Livingston Date: Mon, 5 Jan 2026 18:15:44 -0500 Subject: [PATCH] #7908: Explicitly flag menu item icons as "action image" (#8055) This will make the icons only appear in macOS 26+, without having to manually remove them for earlier releases. This also will allow us to use newer symbol images. --- macosx/Base.lproj/MainMenu.xib | 112 ++++++++++++++++----------------- macosx/Controller.mm | 10 --- macosx/TorrentTableView.mm | 10 --- 3 files changed, 56 insertions(+), 76 deletions(-) diff --git a/macosx/Base.lproj/MainMenu.xib b/macosx/Base.lproj/MainMenu.xib index e2398acda..661509e93 100644 --- a/macosx/Base.lproj/MainMenu.xib +++ b/macosx/Base.lproj/MainMenu.xib @@ -1,8 +1,8 @@ - + - + @@ -535,7 +535,7 @@ - + @@ -587,23 +587,23 @@ - + - + - + - + @@ -619,7 +619,7 @@ - + @@ -627,12 +627,12 @@ - + - + @@ -640,12 +640,12 @@ - + - + @@ -707,18 +707,18 @@ - + - + - + @@ -727,12 +727,12 @@ - + - + @@ -799,7 +799,7 @@ - + @@ -836,7 +836,7 @@ - + @@ -844,12 +844,12 @@ - + - + @@ -857,7 +857,7 @@ - + CA @@ -865,7 +865,7 @@ CA - + CA @@ -874,7 +874,7 @@ CA - + @@ -883,7 +883,7 @@ CA - + @@ -891,13 +891,13 @@ CA - + - + @@ -906,12 +906,12 @@ CA - + - + @@ -919,7 +919,7 @@ CA - + @@ -930,12 +930,12 @@ CA - + - + @@ -987,17 +987,17 @@ CA - + - + - + @@ -1024,17 +1024,17 @@ CA - + - + - + @@ -1066,17 +1066,17 @@ CA - + - + - + @@ -1084,12 +1084,12 @@ CA - + - + @@ -1098,7 +1098,7 @@ CA - + @@ -1106,7 +1106,7 @@ CA - + @@ -1116,12 +1116,12 @@ CA - + - + @@ -1130,13 +1130,13 @@ CA - + - + @@ -1153,12 +1153,12 @@ CA - + - + @@ -1166,7 +1166,7 @@ CA - + @@ -1176,17 +1176,17 @@ CA - + - + - + @@ -1194,7 +1194,7 @@ CA - + diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 6999ca14f..415cd2818 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -813,16 +813,6 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool [self updateMainWindow]; - if (@available(macOS 26.0, *)) - ; - else - { - // <#7908> Keep older macOS clean of visual noise - for (NSMenuItem* item in _fWindow.menu.itemArray) - for (NSMenuItem* subItem in item.submenu.itemArray) - subItem.image = nil; - } - //timer to update the interface every second self.fTimer = [NSTimer scheduledTimerWithTimeInterval:kUpdateUISeconds target:self selector:@selector(updateUI) userInfo:nil repeats:YES]; diff --git a/macosx/TorrentTableView.mm b/macosx/TorrentTableView.mm index ade01f201..b6e1b6bb0 100644 --- a/macosx/TorrentTableView.mm +++ b/macosx/TorrentTableView.mm @@ -91,16 +91,6 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175; - (void)awakeFromNib { [super awakeFromNib]; - if (@available(macOS 26.0, *)) - ; - else - { - // <#7908> Keep older macOS clean of visual noise - for (NSMenuItem* item in _fContextRow.itemArray) - item.image = nil; - for (NSMenuItem* item in _fContextNoRow.itemArray) - item.image = nil; - } [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(refreshTorrentTable) name:@"RefreshTorrentTable" object:nil]; }