ctlPrefWindow // Using mgrPrefs.resetSpecifiedUserDataFolder().

This commit is contained in:
ShikiSuen 2022-04-09 00:08:37 +08:00
parent 40124f243b
commit 9b85039069
1 changed files with 3 additions and 4 deletions

View File

@ -248,8 +248,7 @@ import Cocoa
} }
@IBAction func resetSpecifiedUserDataFolder(_ sender: Any) { @IBAction func resetSpecifiedUserDataFolder(_ sender: Any) {
UserDefaults.standard.removeObject(forKey: "UserDataFolderSpecified") mgrPrefs.resetSpecifiedUserDataFolder()
IME.initLangModels(userOnly: true)
} }
@IBAction func chooseUserDataFolderToSpecify(_ sender: Any) { @IBAction func chooseUserDataFolderToSpecify(_ sender: Any) {
@ -275,14 +274,14 @@ import Cocoa
} else { } else {
clsSFX.beep() clsSFX.beep()
if !bolPreviousFolderValidity { if !bolPreviousFolderValidity {
self.resetSpecifiedUserDataFolder(self) mgrPrefs.resetSpecifiedUserDataFolder()
} }
return return
} }
} }
} else { } else {
if !bolPreviousFolderValidity { if !bolPreviousFolderValidity {
self.resetSpecifiedUserDataFolder(self) mgrPrefs.resetSpecifiedUserDataFolder()
} }
return return
} }