Profile editor - Profile tree ordering fixes

Profile editor - Add new layers on top again
Profile editor - Don't willy nilly expand folders
This commit is contained in:
Robert committed 2020-12-10 20:43:03 +01:00
1 parent 9480cf5c32
commit 1b737b4211
6 files changed
+7 -7

No files matched your search

@@ -39,11 +39,11 @@ namespace Artemis.Core.Services
PluginSetting<LayerBrushReference> defaultReference = _settingsService.GetSetting("ProfileEditor.DefaultLayerBrushDescriptor", new LayerBrushReference
{
LayerBrushProviderId = "Artemis.Plugins.LayerBrushes.Color.ColorBrushProvider-92a9d6ba",
BrushType = "ColorBrush"
BrushType = "SolidBrush"
});
defaultReference.Value.LayerBrushProviderId ??= "Artemis.Plugins.LayerBrushes.Color.ColorBrushProvider-92a9d6ba";
defaultReference.Value.BrushType ??= "ColorBrush";
defaultReference.Value.BrushType ??= "SolidBrush";
return LayerBrushStore.Get(defaultReference.Value.LayerBrushProviderId, defaultReference.Value.BrushType)?.LayerBrushDescriptor;
}
}