|
@@ -219,8 +219,13 @@ namespace BansheeEditor
|
|
|
private void RefreshRecentProjects()
|
|
private void RefreshRecentProjects()
|
|
|
{
|
|
{
|
|
|
GUILayout scrollLayout = recentProjectsArea.Layout;
|
|
GUILayout scrollLayout = recentProjectsArea.Layout;
|
|
|
- while(scrollLayout.ChildCount > 0)
|
|
|
|
|
|
|
+ Debug.Log("SCROLL LAYOUT: " + (scrollLayout != null));
|
|
|
|
|
+
|
|
|
|
|
+ while (scrollLayout.ChildCount > 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ Debug.Log("COUNT: " + scrollLayout.ChildCount + " - " + (scrollLayout.GetChild(0) != null));
|
|
|
scrollLayout.GetChild(0).Destroy();
|
|
scrollLayout.GetChild(0).Destroy();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
RecentProject[] recentProjects = EditorSettings.RecentProjects;
|
|
RecentProject[] recentProjects = EditorSettings.RecentProjects;
|
|
|
Array.Sort(recentProjects, (a, b) => a.accessTimestamp.CompareTo(b.accessTimestamp));
|
|
Array.Sort(recentProjects, (a, b) => a.accessTimestamp.CompareTo(b.accessTimestamp));
|