Skip to content

Commit 0479810

Browse files
Remove redundant description on close button
1 parent f712a0d commit 0479810

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/renderer/texts.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const texts: Record<TextId, Text> = {
1717
},
1818
close: {
1919
title: "Close window",
20-
desc: "Closes the window",
2120
},
2221
paused: {
2322
title: "Pause",
@@ -39,7 +38,7 @@ export const texts: Record<TextId, Text> = {
3938

4039
export function getText(id: TextId): string {
4140
const text = texts[id];
42-
return `${text.title}: ${text.desc}`;
41+
return text.desc ? `${text.title}: ${text.desc}` : text.title;
4342
}
4443

4544
type TextId =
@@ -55,5 +54,5 @@ type TextId =
5554

5655
interface Text {
5756
title: string;
58-
desc: string;
57+
desc?: string;
5958
}

0 commit comments

Comments
 (0)