Fix inverse condition in current profile deletion
This commit is contained in:
parent
ec3cca05ef
commit
e663dbff11
|
@ -296,7 +296,7 @@ extension ProfileManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// IMPORTANT: invalidate current profile if deleted
|
// IMPORTANT: invalidate current profile if deleted
|
||||||
if !currentProfile.value.isPlaceholder && newHeaders.keys.contains(currentProfile.value.id) {
|
if !currentProfile.value.isPlaceholder && !newHeaders.keys.contains(currentProfile.value.id) {
|
||||||
pp_log.info("\tCurrent profile deleted, invalidating...")
|
pp_log.info("\tCurrent profile deleted, invalidating...")
|
||||||
if isCurrentProfileActive() {
|
if isCurrentProfileActive() {
|
||||||
pp_log.info("\tCurrent profile was also active, deactivating...")
|
pp_log.info("\tCurrent profile was also active, deactivating...")
|
||||||
|
|
Loading…
Reference in New Issue