mirror of
https://github.com/4sval/FModel.git
synced 2026-08-28 12:24:44 -05:00
fixed jump to asset folder
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user