This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sort"
|
||||
)
|
||||
|
||||
@@ -65,3 +66,10 @@ func deduplicateObservedFoldersToMap(input []ObservedFolder) map[string]Observed
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
func (cfg *DeviceConfiguration) Description() string {
|
||||
if cfg.Name == "" {
|
||||
return fmt.Sprintf("%s", cfg.DeviceID.Short())
|
||||
}
|
||||
return fmt.Sprintf("%s (%s)", cfg.Name, cfg.DeviceID.Short())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user