fixed jump to asset folder

This commit is contained in:
iAmAsval
2021-05-27 21:51:57 +02:00
parent 554361bea5
commit d5e33f1224
2 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ namespace FModel.Framework
protected ViewModelCommand(TContextViewModel contextViewModel)
{
ContextViewModel = contextViewModel ?? throw new ArgumentNullException(nameof(contextViewModel));
ContextViewModel = contextViewModel /*?? throw new ArgumentNullException(nameof(contextViewModel))*/;
}
public sealed override void Execute(object parameter)

View File

@@ -32,7 +32,8 @@ namespace FModel.ViewModels.Commands
{
foreach (var folder in root)
{
if (!folder.Header.Equals(folders[i])) continue;
if (!folder.Header.Equals(folders[i], i == 0 ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal))
continue;
folder.IsExpanded = true; // folder found = expand