Skip to content

Commit 6b25789

Browse files
mxvshclaude
andcommitted
feat: add clear history option with confirmation dialog
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1a18850 commit 6b25789

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Wave/waveApp.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ struct WaveApp: App {
5353
Text(record.text.count > 40 ? String(record.text.prefix(40)) + "" : record.text)
5454
}
5555
}
56+
Divider()
57+
Button("Clear History...") {
58+
let alert = NSAlert()
59+
alert.messageText = "Clear transcription history?"
60+
alert.informativeText = "This cannot be undone."
61+
alert.alertStyle = .warning
62+
alert.addButton(withTitle: "Clear")
63+
alert.addButton(withTitle: "Cancel")
64+
if alert.runModal() == .alertFirstButtonReturn {
65+
appState.historyManager.clearAll()
66+
}
67+
}
5668
}
5769
}
5870

0 commit comments

Comments
 (0)