From 4b08607608e6fbef853ee8588bc52bfb5c6dca0e Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 15 Oct 2022 14:54:30 +0800 Subject: [PATCH] PrefUI & PrefWindow // Disable multiple selection. --- Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift | 1 + Source/Modules/WindowControllers/CtlPrefWindow.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift index 910d817d..5d463d57 100644 --- a/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift +++ b/Source/Modules/UIModules/PrefUI/VwrPrefPaneDictionary.swift @@ -71,6 +71,7 @@ struct VwrPrefPaneDictionary: View { Self.dlgOpenPath.showsResizeIndicator = true Self.dlgOpenPath.showsHiddenFiles = true Self.dlgOpenPath.canChooseFiles = false + Self.dlgOpenPath.allowsMultipleSelection = false Self.dlgOpenPath.canChooseDirectories = true let bolPreviousFolderValidity = LMMgr.checkIfSpecifiedUserDataFolderValid( diff --git a/Source/Modules/WindowControllers/CtlPrefWindow.swift b/Source/Modules/WindowControllers/CtlPrefWindow.swift index fa398b7a..a022088c 100644 --- a/Source/Modules/WindowControllers/CtlPrefWindow.swift +++ b/Source/Modules/WindowControllers/CtlPrefWindow.swift @@ -246,6 +246,7 @@ class CtlPrefWindow: NSWindowController { dlgOpenPath.showsHiddenFiles = true dlgOpenPath.canChooseFiles = false dlgOpenPath.canChooseDirectories = true + dlgOpenPath.allowsMultipleSelection = false let bolPreviousFolderValidity = LMMgr.checkIfSpecifiedUserDataFolderValid( PrefMgr.shared.userDataFolderSpecified.expandingTildeInPath)