Hide synthetic vault root beside recycle bin
This commit is contained in:
@@ -1270,10 +1270,17 @@ func (u *ui) hiddenVaultRoot() string {
|
||||
return ""
|
||||
}
|
||||
groups := model.ChildGroups(nil)
|
||||
if len(groups) != 1 {
|
||||
roots := make([]string, 0, len(groups))
|
||||
for _, group := range groups {
|
||||
if group == "Recycle Bin" {
|
||||
continue
|
||||
}
|
||||
roots = append(roots, group)
|
||||
}
|
||||
if len(roots) != 1 {
|
||||
return ""
|
||||
}
|
||||
return groups[0]
|
||||
return roots[0]
|
||||
}
|
||||
|
||||
func (u *ui) enterHiddenVaultRoot() {
|
||||
|
||||
Reference in New Issue
Block a user