diff --git a/glass/src/libnt/native/cpp/NTStringChooser.cpp b/glass/src/libnt/native/cpp/NTStringChooser.cpp index 26074fc481..f0fad43843 100644 --- a/glass/src/libnt/native/cpp/NTStringChooser.cpp +++ b/glass/src/libnt/native/cpp/NTStringChooser.cpp @@ -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))