Move from LinkedPath to Fingerprints and PresentationPath

This commit is contained in:
Daniel
2022-10-03 22:10:43 +02:00
parent e1e6a40498
commit 59f776ce2f
9 changed files with 699 additions and 253 deletions

View File

@@ -38,21 +38,6 @@ func getAllActiveProfiles() []*Profile {
return result
}
// findActiveProfile searched for an active local profile using the linked path.
func findActiveProfile(linkedPath string) *Profile {
activeProfilesLock.RLock()
defer activeProfilesLock.RUnlock()
for _, activeProfile := range activeProfiles {
if activeProfile.LinkedPath == linkedPath {
activeProfile.MarkStillActive()
return activeProfile
}
}
return nil
}
// addActiveProfile registers a active profile.
func addActiveProfile(profile *Profile) {
activeProfilesLock.Lock()