ClientMgr // Apply already-entered identifiers when calling COMDLG32.

This commit is contained in:
ShikiSuen 2022-09-11 23:04:13 +08:00
parent 80ee644c54
commit be3ccb52f4
1 changed files with 2 additions and 2 deletions

View File

@ -79,11 +79,11 @@ extension ctlClientListMgr {
alert.accessoryView = scrollview alert.accessoryView = scrollview
alert.beginSheetModal(for: window) { result in alert.beginSheetModal(for: window) { result in
switch result { switch result {
case .alertFirstButtonReturn: case .alertFirstButtonReturn, .alertSecondButtonReturn:
theTextView.textContainer?.textView?.string.components(separatedBy: "\n").filter { !$0.isEmpty }.forEach { theTextView.textContainer?.textView?.string.components(separatedBy: "\n").filter { !$0.isEmpty }.forEach {
self.applyNewValue($0) self.applyNewValue($0)
} }
case .alertSecondButtonReturn: if result == .alertFirstButtonReturn { break }
IME.dlgOpenPath.title = NSLocalizedString( IME.dlgOpenPath.title = NSLocalizedString(
"Choose the target application bundle.", comment: "" "Choose the target application bundle.", comment: ""
) )