From 89eaff4ea84cc59e2c029b9d3f01a2d7443e49c8 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sat, 3 Jul 2021 22:31:42 +0800 Subject: [PATCH] Fix no dirs can be picked if root dir is not set --- lib/widget/album_dir_picker.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/widget/album_dir_picker.dart b/lib/widget/album_dir_picker.dart index f403df7f..f278f77f 100644 --- a/lib/widget/album_dir_picker.dart +++ b/lib/widget/album_dir_picker.dart @@ -64,6 +64,9 @@ class _AlbumDirPickerState extends State @override canPickDir(File dir) { + if (widget.account.roots.contains("")) { + return true; + } final root = api_util.getWebdavRootUrlRelative(widget.account); return widget.account.roots .any((r) => dir.path == "$root/$r" || dir.path.startsWith("$root/$r/"));