Sidebar - Fixed removed categories not dissapearing

Sidebar - Fixed exception when creating a category with an already in use name
This commit is contained in:
Robert committed 2022-10-12 21:20:39 +02:00
1 parent 6a12286783
commit d4bd44b504
10 files changed
+193 -144

No files matched your search

@@ -20,9 +20,11 @@ public class ProfileCategory : CorePropertyChanged, IStorageModel
/// Creates a new instance of the <see cref="ProfileCategory" /> class
/// </summary>
/// <param name="name">The name of the category</param>
internal ProfileCategory(string name)
/// <param name="order">The order of the category</param>
internal ProfileCategory(string name, int order)
{
_name = name;
_order = order;
Entity = new ProfileCategoryEntity();
ProfileConfigurations = new ReadOnlyCollection<ProfileConfiguration>(_profileConfigurations);
}