Browse Source

去掉单击获取路径和文件名

master
hejl 2 months ago
parent
commit
cccbd22a1a
  1. 1
      win_text_editor/lib/modules/content_search/controllers/content_search_controller.dart
  2. 9
      win_text_editor/lib/shared/components/file_explorer.dart

1
win_text_editor/lib/modules/content_search/controllers/content_search_controller.dart

@ -61,7 +61,6 @@ class ContentSearchController with ChangeNotifier { @@ -61,7 +61,6 @@ class ContentSearchController with ChangeNotifier {
set searchDirectory(String value) {
_searchDirectory = value;
Logger().debug('Updating searchDirectory to: $value');
notifyListeners();
}

9
win_text_editor/lib/shared/components/file_explorer.dart

@ -56,15 +56,6 @@ class _FileExplorerState extends State<FileExplorer> { @@ -56,15 +56,6 @@ class _FileExplorerState extends State<FileExplorer> {
final fileProvider = Provider.of<FileProvider>(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);
}
}
}

Loading…
Cancel
Save