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:
parent
8bc2103b0c
commit
eb11ec34f2
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user