File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ export function Settings({ config }: Props): JSX.Element {
64
64
>
65
65
{ texts . limit . title }
66
66
</ InputNumber >
67
+
68
+ < button
69
+ className = "btn btn-sm btn-primary mt-3"
70
+ title = { texts . hideSettings . desc }
71
+ onClick = { ( ) => apiRenderer . command ( { id : "hideSettings" } ) }
72
+ >
73
+ { texts . hideSettings . title }
74
+ </ button >
67
75
</ main >
68
76
) ;
69
77
}
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ export const texts: Record<TextId, Text> = {
30
30
title : "Settings" ,
31
31
desc : "When enabled, show settings panel" ,
32
32
} ,
33
+ hideSettings : {
34
+ title : "Hide settings" ,
35
+ desc : "Hide settings panel" ,
36
+ } ,
33
37
limit : {
34
38
title : "Limit" ,
35
39
desc : "Maximum number of clipboard items to store" ,
@@ -50,6 +54,7 @@ type TextId =
50
54
| "paused"
51
55
| "autoStar"
52
56
| "showSettings"
57
+ | "hideSettings"
53
58
| "limit" ;
54
59
55
60
interface Text {
You can’t perform that action at this time.
0 commit comments