[Inspector V2] Load tree when tab changes (#8101)

diff --git a/packages/devtools_app/lib/src/screens/inspector_v2/inspector_controller.dart b/packages/devtools_app/lib/src/screens/inspector_v2/inspector_controller.dart
index 9bc1020..835368a 100644
--- a/packages/devtools_app/lib/src/screens/inspector_v2/inspector_controller.dart
+++ b/packages/devtools_app/lib/src/screens/inspector_v2/inspector_controller.dart
@@ -307,6 +307,9 @@
     inspectorTree.root = inspectorTree.createNode();
     programmaticSelectionChangeInProgress = false;
     valueToInspectorTreeNode.clear();
+    // Mark tree as inactive so that it will be re-loaded the next time it is
+    // opened:
+    isActive = false;
   }
 
   void onIsolateStopped() {