Browse Source

Resources: fix reveal node if resource view isn't init

lviguier 8 months ago
parent
commit
980a2faeae
1 changed files with 4 additions and 1 deletions
  1. 4 1
      hide/Ide.hx

+ 4 - 1
hide/Ide.hx

@@ -1454,7 +1454,10 @@ class Ide extends hide.tools.IdeData {
 
 	public function showFileInResources(path: String) {
 		var filetree = getViews(hide.view.FileTree)[0];
-		if( filetree != null ) {
+		if( filetree != null) {
+			if (@:privateAccess filetree.tree == null)
+				filetree.onDisplay();
+			filetree.activate();
 			filetree.revealNode(path);
 		}
 	}