mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Meta - Update Nuget packages
Profiles - Fixed duplicating & importing
This commit is contained in:
1 parent
dd8827e186
commit
8c729055ea
13 files changed
+107
-211
No files matched your search
@@ -532,8 +532,10 @@ namespace Artemis.Core.Services
|
||||
if (markAsFreshImport)
|
||||
profileEntity.IsFreshImport = true;
|
||||
|
||||
if (!makeUnique && _profileRepository.Get(profileEntity.Id) == null)
|
||||
if (_profileRepository.Get(profileEntity.Id) != null)
|
||||
_profileRepository.Add(profileEntity);
|
||||
else
|
||||
throw new ArtemisCoreException($"Cannot import this profile without {nameof(makeUnique)} being true");
|
||||
|
||||
ProfileConfiguration profileConfiguration;
|
||||
if (exportModel.ProfileConfigurationEntity != null)
|
||||
|
||||
Reference in new issue
Block a user