mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Profile import - Fixed and streamlined functionality
This commit is contained in:
1 parent
a5455c26d6
commit
8294cc306a
4 files changed
+24
-5
No files matched your search
@@ -236,7 +236,8 @@ namespace Artemis.Core.Services
|
||||
var profileEntity = JsonConvert.DeserializeObject<ProfileEntity>(json, ExportSettings);
|
||||
|
||||
// Assign a new GUID to make sure it is unique in case of a previous import of the same content
|
||||
profileEntity.Id = Guid.NewGuid();
|
||||
profileEntity.UpdateGuid(Guid.NewGuid());
|
||||
profileEntity.Name = $"{profileEntity.Name} - Imported";
|
||||
|
||||
_profileRepository.Add(profileEntity);
|
||||
return new ProfileDescriptor(profileModule, profileEntity);
|
||||
|
||||
Reference in new issue
Block a user