[glass] Use type string constant in NTStringChooser (#6992)

This commit is contained in:
Ryan Blue
2024-08-23 02:36:07 -04:00
committed by GitHub
parent 7a2604b299
commit cf691f744f

View File

@@ -19,8 +19,9 @@ NTStringChooserModel::NTStringChooserModel(nt::NetworkTableInstance inst,
m_inst.GetStringTopic(fmt::format("{}/default", path)).Subscribe("")},
m_selected{m_inst.GetStringTopic(fmt::format("{}/selected", path))
.Subscribe("")},
m_selectedPub{m_inst.GetStringTopic(fmt::format("{}/selected", path))
.PublishEx("string", {{"retained", true}})},
m_selectedPub{
m_inst.GetStringTopic(fmt::format("{}/selected", path))
.PublishEx(nt::StringTopic::kTypeString, {{"retained", true}})},
m_active{
m_inst.GetStringTopic(fmt::format("{}/active", path)).Subscribe("")},
m_options{m_inst.GetStringArrayTopic(fmt::format("{}/options", path))