Add Config Options, fix missing copy.

This commit is contained in:
Ottermandias 2021-08-21 20:42:50 +02:00
parent 0a5066fb70
commit dbccddcc39
14 changed files with 244 additions and 96 deletions

View file

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using Dalamud.Plugin;
@ -84,10 +83,8 @@ namespace Glamourer.Designs
public void DeleteAllChildren(IFileSystemBase root, bool deleteEmpty)
{
if (root is Folder f)
{
foreach (var child in f.AllLeaves(SortMode.Lexicographical))
Designs.Remove(child.FullName());
}
var fullPath = root.FullName();
root.Parent.RemoveChild(root, deleteEmpty);
Designs.Remove(fullPath);