Fixed project item icons, and new document bug

This commit is contained in:
2014-09-12 19:20:21 +03:00
parent 0090059531
commit 22baf7f6a5
5 changed files with 63 additions and 10 deletions

View File

@ -112,6 +112,10 @@ namespace RainmeterStudio.UI.Panels
private void Refresh()
{
// Clear current items
treeProjectItems.Items.Clear();
// No project
if (Controller == null || Controller.ActiveProject == null)
{
this.IsEnabled = false;
@ -137,7 +141,6 @@ namespace RainmeterStudio.UI.Panels
}
// Add tree to tree view
treeProjectItems.Items.Clear();
treeProjectItems.Items.Add(new ReferenceViewModel(refTree));
}
}