Fix ServiceManager.AddProfile signature

This commit is contained in:
Theodor S. Midtlien
2026-09-03 14:10:41 +02:00
parent 70f075806b
commit 36ba4ef091
7 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func (pm *ProfileManager) SwitchProfile(id string) error {
// AddProfile creates a new profile with the given display name and a
// generated ID. It returns the created profile so the caller learns the ID.
func (pm *ProfileManager) AddProfile(displayName string) (*Profile, error) {
profile, err := pm.serviceMgr.AddProfile(displayName, pm.username)
profile, err := pm.serviceMgr.AddProfile(displayName, pm.username, nil)
if err != nil {
return nil, fmt.Errorf("add profile: %w", err)
}