From 21fb402128a559c4253cb7cfa9647b43f6cf6cef Mon Sep 17 00:00:00 2001 From: Fernthedev <15272073+Fernthedev@users.noreply.github.com> Date: Sun, 14 Apr 2024 22:48:09 -0400 Subject: [PATCH] Stop navigating for files --- lib/widgets/browser/file_table.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/widgets/browser/file_table.dart b/lib/widgets/browser/file_table.dart index 6f33585..c84dd93 100644 --- a/lib/widgets/browser/file_table.dart +++ b/lib/widgets/browser/file_table.dart @@ -286,6 +286,8 @@ class _DataRowState extends ConsumerState { focusNode: _focusNode, // onLongPress: _renameDialog, onTap: () { + if (!widget.file.isDirectory) return; + ref .read(fileBrowserProvider.notifier) .navigateToDirectory(widget.file.path);