fix(plugin): clean up MangoHud version display

This commit is contained in:
2026-06-28 20:40:32 +08:00
parent 928ec8ec9a
commit e1269b2de1
+3
View File
@@ -170,6 +170,9 @@ class Plugin:
capture_output=True, text=True, timeout=5
)
version = version_result.stdout.strip() if version_result.returncode == 0 else "unknown"
# Clean up version string (remove git hash suffix)
if version and "-" in version:
version = version.split("-")[0]
return {"installed": True, "path": mangohud_path, "version": version}
else:
return {"installed": False, "path": "", "version": ""}