mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Sidebar - Fix the position of new profiles
This commit is contained in:
parent
5e4fd1de8b
commit
4c274a1749
@ -106,7 +106,7 @@ namespace Artemis.UI.Screens.Sidebar
|
|||||||
if (result != null)
|
if (result != null)
|
||||||
{
|
{
|
||||||
SidebarProfileConfigurationViewModel viewModel = _vmFactory.SidebarProfileConfigurationViewModel(_sidebarViewModel, result);
|
SidebarProfileConfigurationViewModel viewModel = _vmFactory.SidebarProfileConfigurationViewModel(_sidebarViewModel, result);
|
||||||
ProfileConfigurations.Add(viewModel);
|
ProfileConfigurations.Insert(0, viewModel);
|
||||||
SelectedProfileConfiguration = viewModel;
|
SelectedProfileConfiguration = viewModel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,12 +52,12 @@ namespace Artemis.UI.Screens.Sidebar
|
|||||||
|
|
||||||
public async Task ExecuteEditProfile()
|
public async Task ExecuteEditProfile()
|
||||||
{
|
{
|
||||||
ProfileConfiguration? deleted = await _windowService.ShowDialogAsync<ProfileConfigurationEditViewModel, ProfileConfiguration?>(
|
ProfileConfiguration? edited = await _windowService.ShowDialogAsync<ProfileConfigurationEditViewModel, ProfileConfiguration?>(
|
||||||
("profileCategory", ProfileConfiguration.Category),
|
("profileCategory", ProfileConfiguration.Category),
|
||||||
("profileConfiguration", ProfileConfiguration)
|
("profileConfiguration", ProfileConfiguration)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (deleted != null)
|
if (edited != null)
|
||||||
_sidebarViewModel.UpdateProfileCategories();
|
_sidebarViewModel.UpdateProfileCategories();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user