Version bump; some misc changes

This commit is contained in:
2025-11-23 07:33:01 +00:00
parent 01776f0ec0
commit e933f44a32

23
main.go
View File

@@ -27,6 +27,8 @@ import (
var App fyne.App var App fyne.App
var MainWindow fyne.Window var MainWindow fyne.Window
var Version string = "25w47a"
// Client used for posting, getting posts, etc. // Client used for posting, getting posts, etc.
var Client *mastodon.Client var Client *mastodon.Client
@@ -338,7 +340,7 @@ func main() {
LoadedConfig = tempconf LoadedConfig = tempconf
if !LoadedConfig.DoNotDropToProfileSelection { if !LoadedConfig.DoNotDropToProfileSelection || (len(os.Args) > 1 && os.Args[1] == "new") {
log.Println("Launching profile selection") log.Println("Launching profile selection")
ProfileLaunch() ProfileLaunch()
return return
@@ -373,17 +375,30 @@ func main() {
App = app.New() App = app.New()
MainWindow = App.NewWindow("Federalé") MainWindow = App.NewWindow("Federalé")
TootEntry := widget.NewEntry() TootEntry := widget.NewMultiLineEntry()
MainWindow.SetContent(container.NewVBox(TootEntry, widget.NewButton("Post", func() { ReplyIDEntry := widget.NewEntry()
ReplyIDLabel := widget.NewLabel("In reply to")
ReplyBox := container.NewHBox(ReplyIDLabel, ReplyIDEntry)
Timeline := container.NewVBox(widget.NewLabel("Please Wait..."))
go func() {
NewTimeline := container.NewVBox(widget.NewLabel("Posts"))
//pg := new(mastodon.Pagination)
///
Timeline = NewTimeline
}()
MainWindow.SetContent(container.NewHBox(container.NewVBox(TootEntry, ReplyBox, widget.NewButton("Post", func() {
toot := mastodon.Toot{ toot := mastodon.Toot{
Status: TootEntry.Text, Status: TootEntry.Text,
Visibility: "public", Visibility: "public",
InReplyToID: mastodon.ID(ReplyIDEntry.Text),
} }
_, err := Client.PostStatus(context.Background(), &toot) _, err := Client.PostStatus(context.Background(), &toot)
if err != nil { if err != nil {
dialog.ShowError(err, MainWindow) dialog.ShowError(err, MainWindow)
} }
}))) })), Timeline))
MainWindow.ShowAndRun() MainWindow.ShowAndRun()
} }