mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: add button to ignore configuration errors
The popup will return on the next launch or configuration load.
This commit is contained in:
@ -18,7 +18,7 @@ struct ConfigurationErrorsView: View {
|
||||
|
||||
Text("""
|
||||
^[\(model.errors.count) error(s) were](inflect: true) found while loading the configuration. \
|
||||
Please review the errors below and reload your configuration.
|
||||
Please review the errors below and reload your configuration or ignore the erroneous lines.
|
||||
""")
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding()
|
||||
@ -45,9 +45,10 @@ struct ConfigurationErrorsView: View {
|
||||
|
||||
HStack {
|
||||
Spacer()
|
||||
Button("Ignore") { model.errors = [] }
|
||||
Button("Reload Configuration") { reloadConfig() }
|
||||
.padding([.bottom, .trailing])
|
||||
}
|
||||
.padding([.bottom, .trailing])
|
||||
}
|
||||
.frame(minWidth: 480, maxWidth: 960, minHeight: 270)
|
||||
}
|
||||
|
Reference in New Issue
Block a user