Skip to content

Commit

Permalink
Load failed presets with warning icons
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed Jul 28, 2024
1 parent 1c17c02 commit ddfc4ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ private NodeBase GetPresetsFromFolder(string folder, bool isSwitch)

parent.AddChild(matPreset);
}
catch
catch (Exception ex)
{

NodeBase n = new NodeBase($"{Path.GetFileNameWithoutExtension(preset)}");
n.Icon = IconManager.WARNING_ICON.ToString();
parent.AddChild(n);
}
}
}
Expand Down

0 comments on commit ddfc4ca

Please sign in to comment.