Fix app path requirements check
This commit is contained in:
@@ -71,7 +71,7 @@ public class MainViewModel: BaseViewModel {
|
||||
}
|
||||
|
||||
private func checkApplicationPath() {
|
||||
let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.last
|
||||
let directoryName = URL(filePath: Bundle.main.bundlePath).deletingLastPathComponent().pathComponents.first
|
||||
if directoryName != "Applications" {
|
||||
alert = AlertState(
|
||||
title: String(localized: "Wrong application location"),
|
||||
|
||||
Reference in New Issue
Block a user