format code + make showing avatars in member lists optional
This commit is contained in:
@@ -5,6 +5,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/diamondburned/gotk4/pkg/gdk/v4"
|
"github.com/diamondburned/gotk4/pkg/gdk/v4"
|
||||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||||
@@ -14,7 +15,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
"errors"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// global or app-level map/cache
|
// global or app-level map/cache
|
||||||
|
|||||||
@@ -217,6 +217,7 @@ func switchToTab(jid string, w *gtk.Window) {
|
|||||||
medal.SetHExpand(true)
|
medal.SetHExpand(true)
|
||||||
userbox.Append(medal)
|
userbox.Append(medal)
|
||||||
|
|
||||||
|
if loadedConfig.ShowAvatarsInMemberList {
|
||||||
default_av := createIdenticon(u.From, false)
|
default_av := createIdenticon(u.From, false)
|
||||||
userbox.Prepend(default_av)
|
userbox.Prepend(default_av)
|
||||||
var vcu VCardUpdate
|
var vcu VCardUpdate
|
||||||
@@ -233,6 +234,7 @@ func switchToTab(jid string, w *gtk.Window) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gesture := gtk.NewGestureClick()
|
gesture := gtk.NewGestureClick()
|
||||||
gesture.SetButton(1)
|
gesture.SetButton(1)
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ func dropToSignInPage(err error) {
|
|||||||
conf.Insecure = insecure_check.Active()
|
conf.Insecure = insecure_check.Active()
|
||||||
conf.JoinBookmarks = true
|
conf.JoinBookmarks = true
|
||||||
conf.Resource = randomClientResource()
|
conf.Resource = randomClientResource()
|
||||||
|
conf.ShowAvatarsInMemberList = true
|
||||||
|
|
||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
e := toml.NewEncoder(&b)
|
e := toml.NewEncoder(&b)
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ var userdevices sync.Map
|
|||||||
|
|
||||||
var pingTimes = [][]float64{}
|
var pingTimes = [][]float64{}
|
||||||
|
|
||||||
|
|
||||||
var xmlLog *os.File
|
var xmlLog *os.File
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user