We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b591b commit 9e11e3dCopy full SHA for 9e11e3d
ui.go
@@ -85,8 +85,22 @@ func (u *ui) doLogin() {
85
u.pref.SetString(fmt.Sprintf(prefSessionKey, u.user), u.session.Selected)
86
u.pref.SetString(prefUserKey, u.user)
87
88
+ a := widget.NewActivity()
89
+ prop := canvas.NewRectangle(color.Transparent)
90
+ prop.SetMinSize(fyne.NewSquareSize(a.MinSize().Width * 2.5))
91
+ d := dialog.NewCustomWithoutButtons("Logging in...",
92
+ container.NewStack(prop, a), u.gen.win)
93
+ a.Start()
94
+ d.Show()
95
+
96
go func() {
97
pid, err := login(u.user, u.pass.Text, u.sessionExec())
98
99
+ fyne.Do(func() {
100
+ d.Hide()
101
+ a.Stop()
102
+ })
103
104
if err != nil {
105
dialog.ShowError(err, u.gen.win)
106
return
0 commit comments