diff --git a/profile/database.go b/profile/database.go index efae476e..1ce873d3 100644 --- a/profile/database.go +++ b/profile/database.go @@ -92,7 +92,7 @@ func startProfileUpdateChecker() error { // Always increase the revision counter of the layer profile. // This marks previous connections in the UI as decided with outdated settings. if activeProfile.layeredProfile != nil { - activeProfile.layeredProfile.IncreaseRevisionCounter(true) + activeProfile.layeredProfile.increaseRevisionCounter(true) } // If the profile is saved externally (eg. via the API), have the diff --git a/profile/profile-layered.go b/profile/profile-layered.go index 943ee67f..ef40c7fc 100644 --- a/profile/profile-layered.go +++ b/profile/profile-layered.go @@ -165,8 +165,9 @@ func (lp *LayeredProfile) LocalProfile() *Profile { return lp.localProfile } -// RevisionCnt returns the current profile revision counter. -func (lp *LayeredProfile) IncreaseRevisionCounter(lock bool) (revisionCounter uint64) { +// increaseRevisionCounter increases the revision counter and pushes the +// layered profile to listeners. +func (lp *LayeredProfile) increaseRevisionCounter(lock bool) (revisionCounter uint64) { if lp == nil { return 0 } @@ -260,7 +261,7 @@ func (lp *LayeredProfile) Update() (revisionCounter uint64) { lp.updateCaches() // bump revision counter - lp.IncreaseRevisionCounter(false) + lp.increaseRevisionCounter(false) } return lp.RevisionCounter