PrefUI & PrefWindow // Use Swift String with expandingTildeInPath.

This commit is contained in:
ShikiSuen 2022-06-03 09:16:37 +08:00
parent 327b401595
commit 15439ab5b5
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ struct suiPrefPaneDictionary: View {
IME.dlgOpenPath.canChooseDirectories = true
let bolPreviousFolderValidity = mgrLangModel.checkIfSpecifiedUserDataFolderValid(
NSString(string: mgrPrefs.userDataFolderSpecified).expandingTildeInPath)
mgrPrefs.userDataFolderSpecified.expandingTildeInPath)
if let window = ctlPrefUI.shared.controller.window {
IME.dlgOpenPath.beginSheetModal(for: window) { result in

View File

@ -263,7 +263,7 @@ class ctlPrefWindow: NSWindowController {
IME.dlgOpenPath.canChooseDirectories = true
let bolPreviousFolderValidity = mgrLangModel.checkIfSpecifiedUserDataFolderValid(
NSString(string: mgrPrefs.userDataFolderSpecified).expandingTildeInPath)
mgrPrefs.userDataFolderSpecified.expandingTildeInPath)
if window != nil {
IME.dlgOpenPath.beginSheetModal(for: window!) { result in