mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Fix "go back" showing in top-level dir
This commit is contained in:
parent
129f72e7fe
commit
bc489ab954
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ class _AlbumDirPickerState extends State<AlbumDirPicker>
|
|||
@override
|
||||
getPickerRoot() {
|
||||
final root = api_util.getWebdavRootUrlRelative(widget.account);
|
||||
if (widget.account.roots.length == 1) {
|
||||
if (widget.account.roots.length == 1 &&
|
||||
widget.account.roots.first.isNotEmpty) {
|
||||
return "$root/${widget.account.roots.first}";
|
||||
} else {
|
||||
return root;
|
||||
|
|
Loading…
Reference in a new issue