Skip to content

Commit

Permalink
Fix location check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
milanvarady committed Jun 2, 2024
1 parent 16214af commit 6ce75d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Marker Data/Marker Data/Views/Main/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ struct ContentView: View {
}
// Notify user if Marker Data is installed outisde of the the Applications folder
.onAppear {
if !ignoreInstallLocation && Bundle.main.resourceURL != URL.markerDataApp {
showInstallLocationAlert = true
if let appURL = Bundle.main.resourceURL {
if !ignoreInstallLocation && !appURL.hasPrefix(url: .applicationDirectory) {
showInstallLocationAlert = true
}
}
}
.alert("Install Location Warning", isPresented: $showInstallLocationAlert) {
Expand Down

0 comments on commit 6ce75d9

Please sign in to comment.