Activate first created profile
This commit is contained in:
parent
58e375ec41
commit
dec7fb9030
|
@ -176,10 +176,11 @@ extension DefaultProfileManager {
|
|||
return
|
||||
}
|
||||
|
||||
let isActive = isActive ?? allHeaders.isEmpty
|
||||
|
||||
pp_log.info("Writing profile \(profile.logDescription) to persistent store")
|
||||
strategy.saveProfile(profile)
|
||||
|
||||
if let isActive = isActive {
|
||||
if isActive {
|
||||
pp_log.info("\tActivating profile...")
|
||||
activeProfileId = profile.id
|
||||
|
@ -187,7 +188,6 @@ extension DefaultProfileManager {
|
|||
pp_log.info("\tDeactivating profile...")
|
||||
activeProfileId = nil
|
||||
}
|
||||
}
|
||||
|
||||
// IMPORTANT: refresh live copy if just saved (e.g. via intents)
|
||||
if updateIfCurrent && isCurrentProfile(profile.id) {
|
||||
|
|
Loading…
Reference in New Issue