Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Show pending sync breakup on long press

Neeraj Guptada930976efd3
diff --git a/mobile/lib/ui/tools/debug/path_storage_viewer.dart b/mobile/lib/ui/tools/debug/path_storage_viewer.dart
index 2d2a62ae8b..1613b1afa7 100644
--- a/mobile/lib/ui/tools/debug/path_storage_viewer.dart
+++ b/mobile/lib/ui/tools/debug/path_storage_viewer.dart
@@ -114,7 +114,14 @@ class _PathStorageViewerState extends State<PathStorageViewer> {
await Clipboard.setData(ClipboardData(text: widget.item.path));
debugPrint(widget.item.path);
}
-
+ },
+ onDoubleTap: () async {
+ if (widget.item.allowCacheClear && widget.enableDoubleTapClear) {
+ await deleteDirectoryContents(widget.item.path);
+ _safeRefresh();
+ }
+ },
+ onLongPress: () async {
if (widget.item.title == S.of(context).pendingSync) {
await Navigator.of(context).push(
MaterialPageRoute(
@@ -123,12 +130,6 @@ class _PathStorageViewerState extends State<PathStorageViewer> {
);
}
},
- onDoubleTap: () async {
- if (widget.item.allowCacheClear && widget.enableDoubleTapClear) {
- await deleteDirectoryContents(widget.item.path);
- _safeRefresh();
- }
- },
);
}
}