Fixed folder paths when saving

Fixed update-icon close button
This commit is contained in:
Ray committed 2024-07-21 18:44:05 +01:00
1 parent 527c87889e
commit c90a34904d
5 files changed
+22 -46

No files matched your search

+2 -2
View File
@@ -281,7 +281,7 @@ namespace RyzStudio.Windows.Forms
public TreeNode AddNode(BookmarkModel model)
{
var parentNode = this.CreateNodePath(model.Path, (int)NodeIcon.Folder1, (int)NodeIcon.Folder2);
var parentNode = this.CreateNodePath(model?.Path?.Trim() ?? string.Empty, (int)NodeIcon.Folder1, (int)NodeIcon.Folder2);
int iconIndex = (int)NodeIcon.Default;
// Add custom favicon
@@ -304,7 +304,7 @@ namespace RyzStudio.Windows.Forms
}
}
TreeNode newNode = new TreeNode(model.Title, iconIndex, iconIndex);
TreeNode newNode = new TreeNode(model?.Title?.Trim() ?? string.Empty, iconIndex, iconIndex);
newNode.Tag = model;
newNode.ToolTipText = model.ToString();