Skip to content

Commit

Permalink
Fix visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwille committed Jul 23, 2024
1 parent 946f24f commit e3b83fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ILSpy/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public App()
SingleInstance.NewInstanceDetected += SingleInstance_NewInstanceDetected;
}

SharpTreeNode.ImagesProvider = new WpfWindowsTreeNodeImagesProvider();
SharpTreeNode.SetImagesProvider(new WpfWindowsTreeNodeImagesProvider());

InitializeComponent();

Expand Down
3 changes: 2 additions & 1 deletion SharpTreeView/SharpTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ namespace ICSharpCode.TreeView
{
public partial class SharpTreeNode : INotifyPropertyChanged
{
public static ITreeNodeImagesProvider ImagesProvider { get; set; }
protected static ITreeNodeImagesProvider ImagesProvider { get; private set; }
public static void SetImagesProvider(ITreeNodeImagesProvider provider) => ImagesProvider = provider;

SharpTreeNodeCollection modelChildren;
internal SharpTreeNode modelParent;
Expand Down

0 comments on commit e3b83fb

Please sign in to comment.