GetSelectedItem returns the currently selected settings item.
()
| 173 | |
| 174 | // GetSelectedItem returns the currently selected settings item. |
| 175 | func (s *SettingsOverlay) GetSelectedItem() *SettingsItem { |
| 176 | if s.selectedIndex >= 0 && s.selectedIndex < len(s.items) { |
| 177 | return &s.items[s.selectedIndex] |
| 178 | } |
| 179 | return nil |
| 180 | } |
| 181 | |
| 182 | // Render renders the settings overlay. |
| 183 | func (s *SettingsOverlay) Render() string { |
no outgoing calls