|
1 | 1 | import { v1 } from "@docker/extension-api-client-types"; |
2 | | -import { Badge, Button, Dialog, DialogContent, DialogContentText, DialogTitle, Stack, Typography } from "@mui/material"; |
| 2 | +import { Badge, Button, Checkbox, Dialog, DialogContent, DialogContentText, DialogTitle, FormControlLabel, Stack, Typography } from "@mui/material"; |
3 | 3 | import { useEffect, useState } from "react"; |
4 | 4 | import { writeFilesToHost } from "../FileWatcher"; |
5 | 5 | import { trackEvent } from "../Usage"; |
@@ -146,22 +146,19 @@ export const ClaudeConfigSyncStatus = ({ client, setHasConfig }: { client: v1.Do |
146 | 146 | </DialogContent> |
147 | 147 | </Dialog > |
148 | 148 |
|
149 | | - {/* Keep this closed for now. */} |
150 | | - <Dialog open={showRestartModal && false} onClose={() => setShowRestartModal(false)} > |
151 | | - <DialogTitle>Restart Claude Desktop</DialogTitle> |
| 149 | + <Dialog open={showRestartModal} onClose={() => setShowRestartModal(false)} > |
| 150 | + <DialogTitle>Config Changes Applied</DialogTitle> |
152 | 151 | <DialogContent sx={{ padding: 5, mt: 2 }}> |
153 | 152 | <Stack direction="column" spacing={3}> |
154 | 153 | <Typography> |
155 | | - You must manually restart Claude Desktop to apply changes to the config. |
| 154 | + Use the keybind {client.host.platform === 'win32' ? 'Ctrl' : '⌘'} + R to refresh MCP servers in Claude Desktop. |
156 | 155 | </Typography> |
157 | | - <Button onClick={() => { |
158 | | - setShowRestartModal(false) |
159 | | - }}>Close</Button> |
| 156 | + <FormControlLabel control={<Checkbox defaultChecked={getNeverShowAgain()} onChange={(e) => setNeverShowAgain(e.target.checked)} />} label="Don't show this again" /> |
| 157 | + |
160 | 158 |
|
161 | 159 | <Button onClick={() => { |
162 | 160 | setShowRestartModal(false) |
163 | | - setNeverShowAgain(true) |
164 | | - }}>Never show this again</Button> |
| 161 | + }}>Close</Button> |
165 | 162 | </Stack> |
166 | 163 | </DialogContent> |
167 | 164 | </Dialog > |
|
0 commit comments