Add license button

This commit is contained in:
2025-09-02 19:40:35 +01:00
parent d3bffcef81
commit 3f6b87623d
2 changed files with 4021 additions and 1 deletions

View File

@@ -754,6 +754,10 @@ func main() {
dialog.ShowInformation("about pi", fmt.Sprintf("the XMPP client from hell\n\npi is an experimental XMPP client\nwritten by Sunglocto in Go.\n\nVersion %s", version), w)
})
licensesbtn := fyne.NewMenuItem("license", func() {
CreditsWindow(fyne.CurrentApp(), fyne.NewSize(800, 400)).Show()
})
reconnect := fyne.NewMenuItem("reconnect", func() {
go func() {
err := client.Connect()
@@ -1080,7 +1084,7 @@ func main() {
}
})
menu_help := fyne.NewMenu("π", mit, reconnect, savedata)
menu_help := fyne.NewMenu("π", mit, reconnect, licensesbtn, savedata)
menu_changeroom := fyne.NewMenu("Α", mic, beginADM, joinARoom, leaveRoom, jbookmarks)
menu_configureview := fyne.NewMenu("Β", mia, mis, jtt, jtb)