Skip to content

Commit

Permalink
Use type string constant in NTStringChooser
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Aug 23, 2024
1 parent 7a2604b commit e681e9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions glass/src/libnt/native/cpp/NTStringChooser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e681e9f

Please sign in to comment.