diff options
author | xengineering <me@xengineering.eu> | 2023-07-09 16:19:55 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-07-09 16:19:55 +0200 |
commit | ffd41bba908fecc617970cf101d9b63b1db28d40 (patch) | |
tree | 59403c8a3f83f6066acaabf62012466b09171cd4 | |
parent | 16d5f079cc51bffe9f07b356f3a42d5a09a45317 (diff) | |
download | limox-ffd41bba908fecc617970cf101d9b63b1db28d40.tar limox-ffd41bba908fecc617970cf101d9b63b1db28d40.tar.zst limox-ffd41bba908fecc617970cf101d9b63b1db28d40.zip |
Rename MainButton
This used to be the only button. This will change soon.
-rw-r--r-- | gui.go | 2 | ||||
-rw-r--r-- | limox.go | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -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) }, @@ -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: |