Skip to content

Commit

Permalink
Simplify the Transmission display when there are no torrents
Browse files Browse the repository at this point in the history
  • Loading branch information
senorprogrammer committed Jun 27, 2019
1 parent 8bc2103 commit eb11ec3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/transmission/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ func (widget *Widget) contentFrom(data []*transmissionrpc.Torrent) string {
}

func (widget *Widget) display() {
if len(widget.torrents) == 0 {
widget.ScrollableWidget.Redraw(widget.CommonSettings.Title, "no torrents", false)
return
}

content := widget.contentFrom(widget.torrents)
widget.ScrollableWidget.Redraw(widget.CommonSettings.Title, content, false)
}
Expand Down

0 comments on commit eb11ec3

Please sign in to comment.