From e41bc227844aafc524fdfcd6ae493bc643159e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 28 Feb 2026 14:38:17 +0800 Subject: [PATCH] Revert "Fix app path requirements check" This reverts commit f430a0a7cbad99ce5d87a96c0034a3c57e185536. --- MacLibrary/MainViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacLibrary/MainViewModel.swift b/MacLibrary/MainViewModel.swift index 21be5e6..78fc8ea 100644 --- a/MacLibrary/MainViewModel.swift +++ b/MacLibrary/MainViewModel.swift @@ -71,7 +71,7 @@ public class MainViewModel: BaseViewModel { } private func checkApplicationPath() { - let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.first + let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.last if directoryName != "Applications" { alert = AlertState( title: String(localized: "Wrong application location"),