Format code
This commit is contained in:
14
main.go
14
main.go
@@ -3,9 +3,12 @@ package main
|
||||
import (
|
||||
//core - required
|
||||
"context"
|
||||
_ "embed"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
_ "image/jpeg"
|
||||
_ "image/png"
|
||||
"io"
|
||||
"log"
|
||||
"math/rand/v2"
|
||||
@@ -13,9 +16,6 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
_ "embed"
|
||||
_ "image/png"
|
||||
_ "image/jpeg"
|
||||
|
||||
// gui - required
|
||||
"fyne.io/fyne/v2"
|
||||
@@ -33,12 +33,12 @@ import (
|
||||
"github.com/shreve/musicwand/pkg/mpris"
|
||||
|
||||
// xmpp - required
|
||||
oasisSdk "github.com/sunglocto/oasis-sdk"
|
||||
"mellium.im/xmpp/bookmarks"
|
||||
"mellium.im/xmpp/jid"
|
||||
"mellium.im/xmpp/muc"
|
||||
"mellium.im/xmpp/stanza"
|
||||
"mellium.im/xmpp/pubsub"
|
||||
oasisSdk "github.com/sunglocto/oasis-sdk"
|
||||
"mellium.im/xmpp/stanza"
|
||||
// TODO: integrated theme switcher
|
||||
)
|
||||
|
||||
@@ -1580,8 +1580,6 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
AppTabs.OnUnselected = func(ti *container.TabItem) {
|
||||
fmt.Println("hiding")
|
||||
selectedScroller, ok := AppTabs.Selected().Content.(*widget.List)
|
||||
@@ -1624,7 +1622,7 @@ func main() {
|
||||
nameLabel.Truncation = fyne.TextTruncateEllipsis
|
||||
memberLabel := widget.NewLabel(fmt.Sprintf("%d members ", len(tab.Members)))
|
||||
memberLabel.Truncation = fyne.TextTruncateEllipsis
|
||||
box := container.NewVBox(nameLabel, )
|
||||
box := container.NewVBox(nameLabel)
|
||||
chatSidebar.Objects = []fyne.CanvasObject{}
|
||||
|
||||
for name, p := range tab.Members {
|
||||
|
||||
Reference in New Issue
Block a user