lib/config, lib/protocol: Improve folder description with empty label
This commit is contained in:
@@ -106,6 +106,9 @@ func (f *FolderConfiguration) HasMarker() bool {
|
||||
}
|
||||
|
||||
func (f FolderConfiguration) Description() string {
|
||||
if f.Label == "" {
|
||||
return f.ID
|
||||
}
|
||||
return fmt.Sprintf("%q (%s)", f.Label, f.ID)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user