mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Audited .alerts
- Consistent verb usage - Removes dismiss buttons if they are the only action (automatically added)
This commit is contained in:
@@ -107,7 +107,7 @@ struct ArticleThemeManagerView: View {
|
||||
} label: {
|
||||
let exists = themeManager.themeExists(filename: showImportConfirmationAlert.0?.path ?? "")
|
||||
if exists == true {
|
||||
Text("Overwrite", comment: "Button title")
|
||||
Text("Overwrite Theme", comment: "Button title")
|
||||
} else {
|
||||
Text("Import Theme", comment: "Button title")
|
||||
}
|
||||
@@ -139,13 +139,7 @@ struct ArticleThemeManagerView: View {
|
||||
})
|
||||
.alert(Text("Error", comment: "Alert title: Error"),
|
||||
isPresented: $showImportErrorAlert.1,
|
||||
actions: {
|
||||
Button(role: .cancel) {
|
||||
|
||||
} label: {
|
||||
Text("Dismiss", comment: "Button title")
|
||||
}
|
||||
}, message: {
|
||||
actions: { }, message: {
|
||||
Text("\(showImportErrorAlert.0?.localizedDescription ?? "")")
|
||||
})
|
||||
.onReceive(themeManager.objectWillChange) { _ in
|
||||
|
||||
Reference in New Issue
Block a user