diff options
author | xengineering <me@xengineering.eu> | 2023-05-20 19:27:22 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-05-20 19:27:22 +0200 |
commit | 1a920930fe71e569eee124259b43db8e43af3c76 (patch) | |
tree | ac80fab1011e3740617396ab73edce5dd084902a /limox.go | |
parent | 6713c3cc833906802acf3ef89e5ac3dd7f69e128 (diff) | |
download | limox-1a920930fe71e569eee124259b43db8e43af3c76.tar limox-1a920930fe71e569eee124259b43db8e43af3c76.tar.zst limox-1a920930fe71e569eee124259b43db8e43af3c76.zip |
Implement last password persistence
Diffstat (limited to 'limox.go')
-rw-r--r-- | limox.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -46,6 +46,7 @@ func NewLimox() Limox { } l.JidEditor.SetText(getLastJid()) + l.PwdEditor.SetText(getLastPwd()) return l } @@ -82,8 +83,10 @@ func (l *Limox) buttonCallback() { case Disconnected: log.Println("Starting connection establishment ...") jid := l.JidEditor.Text() + pwd := l.PwdEditor.Text() setLastJid(jid) - go xmpp.Run(l.XmppConn, jid, l.PwdEditor.Text()) + setLastPwd(pwd) + go xmpp.Run(l.XmppConn, jid, pwd) l.State = Connecting case Connecting: log.Println("Aborted connection establishment") |