1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Simplify the Transmission display when there are no torrents

This commit is contained in:
Chris Cummer 2019-06-26 18:14:14 -07:00
parent 8bc2103b0c
commit eb11ec34f2

View File

@ -31,11 +31,6 @@ func (widget *Widget) contentFrom(data []*transmissionrpc.Torrent) string {
} }
func (widget *Widget) display() { func (widget *Widget) display() {
if len(widget.torrents) == 0 {
widget.ScrollableWidget.Redraw(widget.CommonSettings.Title, "no torrents", false)
return
}
content := widget.contentFrom(widget.torrents) content := widget.contentFrom(widget.torrents)
widget.ScrollableWidget.Redraw(widget.CommonSettings.Title, content, false) widget.ScrollableWidget.Redraw(widget.CommonSettings.Title, content, false)
} }