views: Allow to know the currently selected entry

This commit is contained in:
Olivier Galibert 2021-05-26 15:19:25 +02:00
parent 8c9f6943c3
commit e0b1142387

View File

@ -1851,6 +1851,8 @@ public:
void select(int entry);
void disable();
std::optional<int> entry() const { return m_cur_id == -1 ? std::optional<int>() : m_cur_slot; }
const std::string &name() const { return m_name; }
private: