From a95a1a883867a298c9dc62386ddbb1f1b817813b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 12 Sep 2023 22:25:24 -0700 Subject: [PATCH] macos: add button to ignore configuration errors The popup will return on the next launch or configuration load. --- .../Sources/Features/Settings/ConfigurationErrorsView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macos/Sources/Features/Settings/ConfigurationErrorsView.swift b/macos/Sources/Features/Settings/ConfigurationErrorsView.swift index 4ad5cf169..73ac957a0 100644 --- a/macos/Sources/Features/Settings/ConfigurationErrorsView.swift +++ b/macos/Sources/Features/Settings/ConfigurationErrorsView.swift @@ -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) }