Fix compile errors due to Beef.Linq update

This commit is contained in:
Simon Lübeß
2026-08-16 22:21:53 +02:00
parent 2a90374b5b
commit c81e695981
4 changed files with 18 additions and 8 deletions
@@ -243,7 +243,7 @@ namespace GlitchyEditor.EditWindows
for (StringView entryName in assetCreator.Name.Split('/'))
{
AssetCreatorTree nextNode = tree.Children.Where(scope (node) => node->Name == entryName).FirstOrDefault();
AssetCreatorTree nextNode = tree.Children.Where((node) => node->Name == entryName).FirstOrDefault();
// Create new node if we didn't find it
nextNode ??= tree.AddChild((entryName, null));
@@ -720,7 +720,7 @@ namespace GlitchyEditor.EditWindows
ImGui.TreeNodeFlags flags = .OpenOnArrow | .SpanAvailWidth;
if(tree.Children.Where(scope (node) => node->IsDirectory).Count() == 0)
if(tree.Children.Where((node) => node->IsDirectory).Count() == 0)
flags |= .Leaf;
if (tree->Path == CurrentDirectory)
@@ -1390,7 +1390,7 @@ namespace GlitchyEditor.EditWindows
private void CopySelectedFiles(bool cutFiles)
{
_filesToCopy.ClearAndDeleteItems();
_selectedFiles.Select(scope (file) => new String(file)).ToList(_filesToCopy);
_selectedFiles.Select((file) => new String(file)).ToList(_filesToCopy);
_cutFiles = cutFiles;
}