mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Plugins - Exclude SkiaSharp/Stylet assets
Plugins - Only copy resources where applicable UI - Added publish profile
This commit is contained in:
1 parent
8a7d7445c5
commit
68ce43e834
27 files changed
+194
-179
No files matched your search
@@ -249,6 +249,9 @@ namespace Artemis.Core.Services
|
||||
public ProfileDescriptor GetLastActiveProfile(ProfileModule module)
|
||||
{
|
||||
var moduleProfiles = _profileRepository.GetByPluginGuid(module.PluginInfo.Guid);
|
||||
if (!moduleProfiles.Any())
|
||||
return CreateProfileDescriptor(module, "Default");
|
||||
|
||||
var profileEntity = moduleProfiles.FirstOrDefault(p => p.IsActive) ?? moduleProfiles.FirstOrDefault();
|
||||
return profileEntity == null ? null : new ProfileDescriptor(module, profileEntity);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user