mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Add clear history button to home
This commit is contained in:
@@ -151,10 +151,7 @@ struct HistorySettings: View {
|
||||
message: Text(
|
||||
"This cannot be reverted. You might need to switch between views or restart the app to see changes."
|
||||
),
|
||||
primaryButton: .destructive(Text("Clear All")) {
|
||||
player.removeAllWatches()
|
||||
CacheModel.shared.removeAll()
|
||||
},
|
||||
primaryButton: .destructive(Text("Clear All"), action: player.removeHistory),
|
||||
secondaryButton: .cancel()
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user