From dde6e7767b1a211a9705f0e18932dadfabc2f26f Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 25 Oct 2022 16:15:23 +0800 Subject: [PATCH] =?UTF-8?q?Update=20openPanel=E2=80=99s=20default=20locati?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update openPanel’s default location to “~/Library/Developer” --- Utils/FileHelper.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/FileHelper.swift b/Utils/FileHelper.swift index 232368b..3c0b773 100644 --- a/Utils/FileHelper.swift +++ b/Utils/FileHelper.swift @@ -53,7 +53,7 @@ class FileHelper { openPanel.canChooseDirectories = true openPanel.canCreateDirectories = false openPanel.canChooseFiles = false - // openPanel.title = CHOOSE_DEVELOPER_DIR + openPanel.directoryURL = URL(fileURLWithPath: FileHelper.standard.getDefaultXcodePath()) openPanel.message = "\(CHOOSE_DEVELOPER_DIR)\n\(CHOOSE_DEVELOPER_DIR_TIP)" openPanel.showsHiddenFiles = true openPanel.begin { (result) -> Void in