mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[glass] Use type string constant in NTStringChooser (#6992)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user