This commit is contained in:
J. Nick Koston
2025-12-22 21:42:50 -10:00
parent 3e1db740ea
commit 6d5ab00385

View File

@@ -19,7 +19,9 @@ void EntityBase::set_name(const char *name, uint32_t object_id_hash) {
} else
#endif
{
this->name_ = StringRef(App.get_friendly_name());
// Use friendly_name if available, otherwise fall back to device name
const std::string &friendly = App.get_friendly_name();
this->name_ = StringRef(!friendly.empty() ? friendly : App.get_name());
}
this->flags_.has_own_name = false;
// Dynamic name - must calculate hash at runtime