We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3fcce5 commit 457fc81Copy full SHA for 457fc81
2 files changed
.changeset/slimy-birds-move.md
@@ -0,0 +1,5 @@
1
+---
2
+"amon-agent": patch
3
4
+
5
+Add tip for unsaved settings change
src/renderer/components/Settings/SettingsWindow.tsx
@@ -170,7 +170,10 @@ const SettingsWindow: React.FC = () => {
170
171
{/* 底部按钮 */}
172
{activeTab !== 'about' && activeTab !== 'skills' && (
173
- <div className="p-4 flex justify-end gap-3">
+ <div className="p-4 flex items-center justify-end gap-3">
174
+ {hasChanges && (
175
+ <span className="text-sm text-destructive mr-2">有未保存的更改</span>
176
+ )}
177
<button
178
onClick={handleClose}
179
className="px-4 py-2 text-sm font-medium text-foreground bg-muted rounded-lg hover:bg-accent transition-colors"
0 commit comments