mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
use widget.View.SetText to print
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func (widget *Widget) display() {
|
||||
widget.View.Clear()
|
||||
|
||||
repo := widget.currentGithubRepo()
|
||||
if repo == nil {
|
||||
@@ -27,7 +26,7 @@ func (widget *Widget) display() {
|
||||
str = str + " [red]My Pull Requests[white]\n"
|
||||
str = str + widget.displayMyPullRequests(repo, Config.UString("wtf.mods.github.username"))
|
||||
|
||||
fmt.Fprintf(widget.View, str)
|
||||
widget.View.SetText(str)
|
||||
}
|
||||
|
||||
func (widget *Widget) displayMyPullRequests(repo *GithubRepo, username string) string {
|
||||
|
||||
Reference in New Issue
Block a user