From bb2afaa5871c13f07949e07f8f4e34dc2d820841 Mon Sep 17 00:00:00 2001 From: Victor Fuentes Date: Sun, 19 Feb 2023 12:29:44 -0500 Subject: [PATCH] Fix displayed version in update and installed page --- src/ui/window.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/window.rs b/src/ui/window.rs index 0fdf77f..cb873ff 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -1443,7 +1443,7 @@ FROM pkgs JOIN meta ON (pkgs.attribute = meta.attribute) WHERE pkgs.attribute = .bind(installedpkg) .fetch_one(pool) .await; - if let Ok((version, pname)) = versionpname { + if let Ok((pname, version)) = versionpname { let desc: sqlx::Result<(String,)> = sqlx::query_as("SELECT description FROM meta WHERE attribute = $1") .bind(installedpkg) @@ -1474,7 +1474,6 @@ FROM pkgs JOIN meta ON (pkgs.attribute = meta.attribute) WHERE pkgs.attribute = } } } - // if let Some(item) = self.pkgitems.get(installedpkg) { installedsystemitems.push(InstalledItem { name: name.to_string(), pname: pname.to_string(),