fixed tab context menu for custom tab colors

This commit is contained in:
Eugene Pankov 2020-08-15 20:46:40 +02:00
parent 436318b534
commit 60ab6ece62
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -120,7 +120,7 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
}, },
{ {
label: 'Color', label: 'Color',
sublabel: COLORS.find(x => x.value === tab.color)!.name, sublabel: COLORS.find(x => x.value === tab.color)?.name,
submenu: COLORS.map(color => ({ submenu: COLORS.map(color => ({
label: color.name, label: color.name,
type: 'radio', type: 'radio',