changes to follow 7bab52f033

This commit is contained in:
2026-01-10 14:43:57 +00:00
parent 7bab52f033
commit 78c7f0175d

18
main.go
View File

@@ -1213,14 +1213,7 @@ func main() {
joinARoom := fyne.NewMenuItem("connect to a room", func() { joinARoom := fyne.NewMenuItem("connect to a room", func() {
dialog.ShowEntryDialog("connect to a room", "JID:", func(s string) { dialog.ShowEntryDialog("connect to a room", "JID:", func(s string) {
i := resourcePiloadingGif d := dialog.NewCustom("Please wait", "Close", widget.NewLabel("Connecting to "+s), w)
gif, err := extraWidgets.NewAnimatedGifFromResource(i)
if err != nil {
panic(err)
}
gif.Start()
gif.Show()
d := dialog.NewCustom("Please wait", "Close", gif, w)
d.Show() d.Show()
go func() { go func() {
myjid, err := jid.Parse(s) myjid, err := jid.Parse(s)
@@ -1249,14 +1242,7 @@ func main() {
beginADM := fyne.NewMenuItem("start a DM", func() { beginADM := fyne.NewMenuItem("start a DM", func() {
dialog.ShowEntryDialog("Start a DM", "JID:", func(s string) { dialog.ShowEntryDialog("Start a DM", "JID:", func(s string) {
i := resourcePiloadingGif d := dialog.NewCustom("Please wait", "Close", widget.NewLabel("Opening a DM with " + s), w)
gif, err := extraWidgets.NewAnimatedGifFromResource(i)
if err != nil {
panic(err)
}
gif.Start()
gif.Show()
d := dialog.NewCustom("Please wait", "Close", gif, w)
d.Show() d.Show()
go func() { go func() {
myjid, err := jid.Parse(s) myjid, err := jid.Parse(s)