macos: selected color in tab color menu should use target's color

pull/9877/head
Mitchell Hashimoto 2025-12-11 14:33:50 -08:00
parent d77b7c32f9
commit 89bdee447f
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ extension TerminalWindow {
let paletteItem = NSMenuItem()
paletteItem.identifier = Self.tabColorPaletteIdentifier
paletteItem.view = makeTabColorPaletteView(
selectedColor: tabColor
selectedColor: (target?.window as? TerminalWindow)?.tabColor ?? .none
) { [weak target] color in
(target?.window as? TerminalWindow)?.tabColor = color
}