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

This commit is contained in:
Mitchell Hashimoto
2025-12-11 14:33:50 -08:00
parent d77b7c32f9
commit 89bdee447f

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
}