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:
committed by
Chris Cummer
parent
a4879ca1ff
commit
8f3f5e9120
@@ -9,7 +9,6 @@ import (
|
||||
)
|
||||
|
||||
func (widget *Widget) display() {
|
||||
widget.View.Clear()
|
||||
|
||||
repoData := widget.currentData()
|
||||
if repoData == nil {
|
||||
@@ -28,7 +27,7 @@ func (widget *Widget) display() {
|
||||
str = str + "\n"
|
||||
str = str + widget.formatCommits(repoData.Commits)
|
||||
|
||||
fmt.Fprintf(widget.View, "%s", str)
|
||||
widget.View.SetText(fmt.Sprintf("%s", str))
|
||||
}
|
||||
|
||||
func (widget *Widget) formatChanges(data []string) string {
|
||||
|
||||
Reference in New Issue
Block a user