From ffd41bba908fecc617970cf101d9b63b1db28d40 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 9 Jul 2023 16:19:55 +0200 Subject: Rename MainButton This used to be the only button. This will change soon. --- limox.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'limox.go') diff --git a/limox.go b/limox.go index 5bb2d57..4914ff5 100644 --- a/limox.go +++ b/limox.go @@ -25,7 +25,7 @@ const ( type Limox struct { JidEditor widget.Editor PwdEditor widget.Editor - MainButton widget.Clickable + ConnectButton widget.Clickable sessionIn chan<- any sessionOut chan any State LimoxState @@ -60,8 +60,8 @@ func (l *Limox) run() error { case system.DestroyEvent: return e.Err case system.FrameEvent: - if l.MainButton.Clicked() { - l.buttonCallback() + if l.ConnectButton.Clicked() { + l.connectCallback() } l.draw(e) } @@ -79,7 +79,7 @@ func (l *Limox) run() error { } } -func (l *Limox) buttonCallback() { +func (l *Limox) connectCallback() { c := l.sessionIn switch l.State { case Disconnected: -- cgit v1.2.3-70-g09d2