mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Profiles - Fixed PerLayerBrush clip rendering issue on transform
Profile service - Store the active profile whenever it changes
This commit is contained in:
1 parent
fb93ad16fe
commit
f21ade955d
4 files changed
+39
-10
No files matched your search
@@ -286,11 +286,13 @@ namespace Artemis.UI.Screens.Module.ProfileEditor
|
||||
Profiles.AddRange(_profileService.GetProfileDescriptors(Module).OrderBy(d => d.Name));
|
||||
|
||||
// Populate the selected profile
|
||||
SelectedProfile = Profiles.FirstOrDefault(p => p.IsLastActiveProfile);
|
||||
|
||||
if (SelectedProfile != null)
|
||||
var lastActiveProfile = Profiles.FirstOrDefault(p => p.IsLastActiveProfile) ?? Profiles.FirstOrDefault();
|
||||
if (lastActiveProfile != null)
|
||||
{
|
||||
SelectedProfile = lastActiveProfile;
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
// Create a default profile if there is none
|
||||
var defaultProfile = _profileService.CreateProfileDescriptor(Module, "Default");
|
||||
Profiles.Add(defaultProfile);
|
||||
|
||||
Reference in new issue
Block a user