From 58486708bddf30871f6d412001b17511e86f0d9f Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Thu, 19 Oct 2023 14:04:00 +0200 Subject: [PATCH] fix(neon_files): FileListTile don't show actions in selectDirectory mode Signed-off-by: Nikolas Rimikis --- packages/neon/neon_files/lib/widgets/browser_view.dart | 1 + packages/neon/neon_files/lib/widgets/file_list_tile.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/neon/neon_files/lib/widgets/browser_view.dart b/packages/neon/neon_files/lib/widgets/browser_view.dart index ab112e6d..1104c27e 100644 --- a/packages/neon/neon_files/lib/widgets/browser_view.dart +++ b/packages/neon/neon_files/lib/widgets/browser_view.dart @@ -123,6 +123,7 @@ class _FilesBrowserViewState extends State { bloc: widget.filesBloc, browserBloc: widget.bloc, details: details, + mode: widget.mode, ); }, isLoading: filesSnapshot.isLoading, diff --git a/packages/neon/neon_files/lib/widgets/file_list_tile.dart b/packages/neon/neon_files/lib/widgets/file_list_tile.dart index cb609d55..85426f9f 100644 --- a/packages/neon/neon_files/lib/widgets/file_list_tile.dart +++ b/packages/neon/neon_files/lib/widgets/file_list_tile.dart @@ -73,7 +73,7 @@ class FileListTile extends StatelessWidget { details: details, bloc: bloc, ), - trailing: !details.hasTask && mode != FilesBrowserMode.noActions + trailing: !details.hasTask && mode == FilesBrowserMode.browser ? FileActions(details: details) : const SizedBox.square( dimension: largeIconSize,