瀏覽代碼

AppStorage: Only show detailed view for internal users

Neeraj Gupta 2 年之前
父節點
當前提交
ba669c0e2e
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      lib/ui/tools/debug/app_storage_viewer.dart

+ 9 - 9
lib/ui/tools/debug/app_storage_viewer.dart

@@ -77,16 +77,16 @@ class _AppStorageViewerState extends State<AppStorageViewer> {
         allowCacheClear: true,
         allowCacheClear: true,
       ),
       ),
     ]);
     ]);
-    // if (internalUser) {
-    paths.addAll([
-      PathStorageItem.name(appDocumentsDirectory.path, "App Documents Dir"),
-      PathStorageItem.name(appSupportDirectory.path, "App Support Dir"),
-      PathStorageItem.name(appTemporaryDirectory.path, "App Temp Dir"),
-    ]);
-    if (!Platform.isAndroid) {
-      paths.add(PathStorageItem.name(iOSOnlyTempDirectory, "/tmp directory"));
+    if (internalUser) {
+      paths.addAll([
+        PathStorageItem.name(appDocumentsDirectory.path, "App Documents Dir"),
+        PathStorageItem.name(appSupportDirectory.path, "App Support Dir"),
+        PathStorageItem.name(appTemporaryDirectory.path, "App Temp Dir"),
+      ]);
+      if (!Platform.isAndroid) {
+        paths.add(PathStorageItem.name(iOSOnlyTempDirectory, "/tmp directory"));
+      }
     }
     }
-    // }
     if (mounted) {
     if (mounted) {
       setState(() => {});
       setState(() => {});
     }
     }