summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Slimber/MainController.cpp')
-rw-r--r--Slimber/MainController.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Slimber/MainController.cpp b/Slimber/MainController.cpp
index 9cd8c4d..baf032c 100644
--- a/Slimber/MainController.cpp
+++ b/Slimber/MainController.cpp
@@ -80,7 +80,11 @@ void MainController::handleSelfConnected(bool b) {
void MainController::handleServicesChanged() {
std::vector<String> names;
foreach(const LinkLocalService& service, linkLocalServiceBrowser->getServices()) {
- names.push_back(service.getDescription());
+ String description = service.getDescription();
+ if (description != service.getName()) {
+ description += " (" + service.getName() + ")";
+ }
+ names.push_back(description);
}
menuletController->setUserNames(names);
}