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

Merge branch 'master' into support-github-enterprise

This commit is contained in:
Amr Tamimi
2018-06-14 11:37:10 +02:00
committed by GitHub
731 changed files with 141852 additions and 515 deletions

View File

@@ -7,7 +7,6 @@ import (
)
func (widget *Widget) display() {
widget.View.Clear()
repo := widget.currentGithubRepo()
if repo == nil {
@@ -15,7 +14,7 @@ func (widget *Widget) display() {
return
}
widget.View.SetTitle(fmt.Sprintf(" Github: %s ", widget.title(repo)))
widget.View.SetTitle(fmt.Sprintf("%s- %s", widget.Name, widget.title(repo)))
str := wtf.SigilStr(len(widget.GithubRepos), widget.Idx, widget.View) + "\n"
str = str + " [red]Stats[white]\n"
@@ -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 {

View File

@@ -51,10 +51,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
/* -------------------- Exported Functions -------------------- */
func (widget *Widget) Refresh() {
if widget.Disabled() {
return
}
for _, repo := range widget.GithubRepos {
repo.Refresh()
}