mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 15:09:22 +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
|
@override
|
||||||
getPickerRoot() {
|
getPickerRoot() {
|
||||||
final root = api_util.getWebdavRootUrlRelative(widget.account);
|
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}";
|
return "$root/${widget.account.roots.first}";
|
||||||
} else {
|
} else {
|
||||||
return root;
|
return root;
|
||||||
|
|
Loading…
Reference in a new issue