GetSelectedDownload returns the currently selected download from the list
()
| 306 | |
| 307 | // GetSelectedDownload returns the currently selected download from the list |
| 308 | func (m *RootModel) GetSelectedDownload() *DownloadModel { |
| 309 | if item := m.list.SelectedItem(); item != nil { |
| 310 | if di, ok := item.(DownloadItem); ok { |
| 311 | return di.download |
| 312 | } |
| 313 | } |
| 314 | return nil |
| 315 | } |
no outgoing calls