From cd34d64ca6ef83882bf447c3cff3480980f86dc6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 13 Dec 2023 15:59:19 +0100 Subject: [PATCH] Fix profile icon package refs --- sync/profile.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sync/profile.go b/sync/profile.go index 20aeb7dd..2ddafeaa 100644 --- a/sync/profile.go +++ b/sync/profile.go @@ -14,6 +14,7 @@ import ( "github.com/safing/portbase/config" "github.com/safing/portbase/log" "github.com/safing/portmaster/profile" + "github.com/safing/portmaster/profile/icons" ) // ProfileExport holds an export of a profile. @@ -414,12 +415,12 @@ func ImportProfile(r *ProfileImportRequest, requiredProfileSource profile.Profil if err != nil { return nil, fmt.Errorf("%w: icon data is invalid: %w", ErrImportFailed, err) } - filename, err := profile.UpdateProfileIcon(du.Data, du.MediaType.Subtype) + filename, err := icons.UpdateProfileIcon(du.Data, du.MediaType.Subtype) if err != nil { return nil, fmt.Errorf("%w: icon is invalid: %w", ErrImportFailed, err) } - p.Icons = []profile.Icon{{ - Type: profile.IconTypeAPI, + p.Icons = []icons.Icon{{ + Type: icons.IconTypeAPI, Value: filename, }} }