Skip to content

Commit

Permalink
LayoutCard: Use custom layer names for the header too, if available
Browse files Browse the repository at this point in the history
Don't just pass down the custom names for the keymap renderer, use the custom
name for the page header too, if a custom name is available.

Signed-off-by: Gergely Nagy <[email protected]>
  • Loading branch information
algernon committed Jul 23, 2022
1 parent 86d7b63 commit eb5a96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/screens/LayoutCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const LayoutCard = (props) => {
marginLeft: 5,
}}
>
{t("components.layer", { index: i })}
{layerNames.names[i] || t("components.layer", { index: i })}
</Typography>
<KeymapSVG
className="layer"
Expand Down

0 comments on commit eb5a96c

Please sign in to comment.