From cccbd22a1aed5911ad45305c95a1cb7df8417c09 Mon Sep 17 00:00:00 2001 From: hejl Date: Mon, 19 May 2025 14:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8D=95=E5=87=BB=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=B7=AF=E5=BE=84=E5=92=8C=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/content_search_controller.dart | 1 - win_text_editor/lib/shared/components/file_explorer.dart | 9 --------- 2 files changed, 10 deletions(-) diff --git a/win_text_editor/lib/modules/content_search/controllers/content_search_controller.dart b/win_text_editor/lib/modules/content_search/controllers/content_search_controller.dart index 54f1e05..42f2ea7 100644 --- a/win_text_editor/lib/modules/content_search/controllers/content_search_controller.dart +++ b/win_text_editor/lib/modules/content_search/controllers/content_search_controller.dart @@ -61,7 +61,6 @@ class ContentSearchController with ChangeNotifier { set searchDirectory(String value) { _searchDirectory = value; - Logger().debug('Updating searchDirectory to: $value'); notifyListeners(); } diff --git a/win_text_editor/lib/shared/components/file_explorer.dart b/win_text_editor/lib/shared/components/file_explorer.dart index dfb9812..dba25cc 100644 --- a/win_text_editor/lib/shared/components/file_explorer.dart +++ b/win_text_editor/lib/shared/components/file_explorer.dart @@ -56,15 +56,6 @@ class _FileExplorerState extends State { final fileProvider = Provider.of(context, listen: false); if (node.isDirectory) { await fileProvider.loadDirectoryContents(node); - // 添加文件夹双击回调 - if (widget.onFolderDoubleTap != null) { - widget.onFolderDoubleTap!(node.path); - } - } else { - // 添加文件双击回调 - if (widget.onFileDoubleTap != null) { - widget.onFileDoubleTap!(node.path); - } } }