Просмотр исходного кода

AppStorage: Only show detailed view for internal users

Neeraj Gupta 2 лет назад
Родитель
Сommit
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,
       ),
     ]);
-    // 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) {
       setState(() => {});
     }