format code & add additional assets

This commit is contained in:
2026-03-10 16:48:10 +00:00
parent 77e4e444d4
commit 7a201808e3
11 changed files with 37 additions and 41 deletions

View File

@@ -188,10 +188,10 @@ func switchToTab(jid string, w *gtk.Window) {
}
/*
s := fmt.Sprintf("%v", res.Features)
h := sha1.New()
h.Write([]byte(s))
sha1_hash := hex.EncodeToString(h.Sum(nil))
s := fmt.Sprintf("%v", res.Features)
h := sha1.New()
h.Write([]byte(s))
sha1_hash := hex.EncodeToString(h.Sum(nil))
*/
sw := gtk.NewScrolledWindow()
@@ -222,10 +222,10 @@ func switchToTab(jid string, w *gtk.Window) {
ver_text.RemoveCSSClass("visitor")
} else if result.Error != nil && result.Error.Type != "" {
ver_text.SetText("Got error trying to get version")
ver_text.SetTooltipText(result.Error.Reason + ": "+result.Error.Text)
ver_text.SetTooltipText(result.Error.Reason + ": " + result.Error.Text)
ver_text.RemoveCSSClass("visitor")
ver_text.AddCSSClass("error")
}
}
}
}()