Report wine-access version if available in version commands.

This commit is contained in:
Storm Dragon committed 2026-10-24 15:19:43 -04:00
1 parent 7c032a5f6e
commit 133953e972
10 files changed
+144 -11

No files matched your search

+4 -1
View File
@@ -30,11 +30,14 @@ func String() string {
return Name + " screen reader version " + Build + "-" + Channel
}
func Details(atspiVersion, sessionType, sessionDesktop string) string {
func Details(atspiVersion, sessionType, sessionDesktop, wineVersion string) string {
details := String() + ", AT-SPI2 version: " + atspiVersion
session := strings.TrimSpace(sessionType + " " + sessionDesktop)
if session != "" {
details += ", Session: " + session
}
if wineVersion != "" {
details += ", wine-access " + wineVersion
}
return details
}