lib/config, lib/protocol: Improve folder description with empty label

This commit is contained in:
Jakob Borg committed 2016-12-19 10:12:06 +01:00
1 parent f09698d845
commit 2f770f8bfb
3 files changed
+8 -1

No files matched your search

+3
View File
@@ -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)
}