summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.go2
-rw-r--r--limox.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/gui.go b/gui.go
index 55730df..8fcfed6 100644
--- a/gui.go
+++ b/gui.go
@@ -44,7 +44,7 @@ func (l *Limox) draw(e system.FrameEvent) {
),
layout.Rigid(
func(gtx layout.Context) layout.Dimensions {
- btn := material.Button(l.Theme, &l.MainButton,
+ btn := material.Button(l.Theme, &l.ConnectButton,
l.buttonLabel())
return btn.Layout(gtx)
},
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: