format code
This commit is contained in:
@@ -104,9 +104,6 @@ func switchToTab(jid string, w *gtk.Window) {
|
|||||||
medal.SetHExpand(true)
|
medal.SetHExpand(true)
|
||||||
userbox.Append(medal)
|
userbox.Append(medal)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
gesture := gtk.NewGestureClick()
|
gesture := gtk.NewGestureClick()
|
||||||
gesture.SetButton(3) // Right click
|
gesture.SetButton(3) // Right click
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
||||||
"os"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/diamondburned/gotk4/pkg/gio/v2"
|
"github.com/diamondburned/gotk4/pkg/gio/v2"
|
||||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||||
@@ -52,7 +51,6 @@ func dropToSignInPage(err error) {
|
|||||||
insecure_check.SetHAlign(gtk.AlignEnd)
|
insecure_check.SetHAlign(gtk.AlignEnd)
|
||||||
insecure_check.SetHExpand(true)
|
insecure_check.SetHExpand(true)
|
||||||
|
|
||||||
|
|
||||||
server_box.Append(server_label)
|
server_box.Append(server_label)
|
||||||
server_box.Append(server_entry)
|
server_box.Append(server_entry)
|
||||||
|
|
||||||
@@ -93,7 +91,6 @@ func dropToSignInPage(err error) {
|
|||||||
}
|
}
|
||||||
os.WriteFile(filepath.Join(p, "lambda.toml"), b.Bytes(), 0644)
|
os.WriteFile(filepath.Join(p, "lambda.toml"), b.Bytes(), 0644)
|
||||||
|
|
||||||
|
|
||||||
window.SetVisible(false)
|
window.SetVisible(false)
|
||||||
main()
|
main()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ func joinMuc(c xmpp.Sender, jid string, muc string, nick string) error {
|
|||||||
// jid MustParse but using gosrc's instead of mellium
|
// jid MustParse but using gosrc's instead of mellium
|
||||||
// This function will panic if its an invalid JID
|
// This function will panic if its an invalid JID
|
||||||
|
|
||||||
func JidMustParse(s string) (*stanza.Jid) {
|
func JidMustParse(s string) *stanza.Jid {
|
||||||
j, err := stanza.NewJid(s)
|
j, err := stanza.NewJid(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user