Skip to content

Commit 0e5b05e

Browse files
committed
Improve version card display logic to handle non-numeric version strings
1 parent 7bf7869 commit 0e5b05e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/windows/details_window.vala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ namespace AppManager {
252252

253253
// Version card (only show if version is known)
254254
if (record.version != null && record.version.strip() != "") {
255-
var version_card = create_info_card("v%s".printf(record.version));
255+
var version_text = record.version.strip();
256+
var version_card = create_info_card(version_text.get_char(0).isdigit() ? "v%s".printf(version_text) : version_text);
256257
version_card.set_tooltip_text(_("App version"));
257258
cards_box.append(version_card);
258259
}

0 commit comments

Comments
 (0)