removed unneeded calls to Ui.Refresh

This commit is contained in:
Tim Cooper
2014-12-06 22:38:40 -04:00
parent 0019ea7cb8
commit c885441d8e

6
ui.go
View File

@@ -33,7 +33,6 @@ func (b *Barnard) UpdateInputStatus(status string) {
func (b *Barnard) AddOutputLine(line string) {
now := time.Now()
b.UiOutput.AddLine(fmt.Sprintf("[%02d:%02d:%02d] %s", now.Hour(), now.Minute(), now.Second(), line))
b.Ui.Refresh()
}
func (b *Barnard) AddOutputMessage(sender *gumble.User, message string) {
@@ -66,27 +65,22 @@ func (b *Barnard) OnQuitPress(ui *uiterm.Ui, key uiterm.Key) {
func (b *Barnard) OnClearPress(ui *uiterm.Ui, key uiterm.Key) {
b.UiOutput.Clear()
b.Ui.Refresh()
}
func (b *Barnard) OnScrollOutputUp(ui *uiterm.Ui, key uiterm.Key) {
b.UiOutput.ScrollUp()
b.Ui.Refresh()
}
func (b *Barnard) OnScrollOutputDown(ui *uiterm.Ui, key uiterm.Key) {
b.UiOutput.ScrollDown()
b.Ui.Refresh()
}
func (b *Barnard) OnScrollOutputTop(ui *uiterm.Ui, key uiterm.Key) {
b.UiOutput.ScrollTop()
b.Ui.Refresh()
}
func (b *Barnard) OnScrollOutputBottom(ui *uiterm.Ui, key uiterm.Key) {
b.UiOutput.ScrollBottom()
b.Ui.Refresh()
}
func (b *Barnard) OnFocusPress(ui *uiterm.Ui, key uiterm.Key) {