From 541e50a7c7c07f254ef13120df417ff757a484a4 Mon Sep 17 00:00:00 2001 From: keke <243768648@qq.com> Date: Thu, 9 Mar 2023 23:42:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=B7=B1?= =?UTF-8?q?=E5=BA=A6=E5=BA=94=E7=94=A8=E5=95=86=E5=BA=97=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E9=A1=B5=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/appmanagermodel.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/appmanagermodel.cpp b/src/appmanagermodel.cpp index 8f029fb..9feac20 100644 --- a/src/appmanagermodel.cpp +++ b/src/appmanagermodel.cpp @@ -71,21 +71,23 @@ QList AppManagerModel::getSearchedAppInfoList() const void AppManagerModel::openStoreAppDetailPage(const QString &pkgName) { QProcess proc; - QString cmd = QString("qdbus com.home.appstore.client " - "/com/home/appstore/client " - "com.home.appstore.client.openBusinessUri " - "\"app_detail_info/%1\"") - .arg(pkgName); + QString cmd; + cmd = QString("qdbus com.home.appstore.client " + "/com/home/appstore/client " + "com.home.appstore.client.newInstence"); proc.start(cmd); proc.waitForStarted(); proc.waitForFinished(); cmd = QString("qdbus com.home.appstore.client " - "/com/home/appstore/client " - "com.home.appstore.client.newInstence"); + "/com/home/appstore/client " + "com.home.appstore.client.openBusinessUri " + "\"app_detail_info/%1\"") + .arg(pkgName); proc.start(cmd); proc.waitForStarted(); proc.waitForFinished(); + } void AppManagerModel::openSpkStoreAppDetailPage(const QString &pkgName) -- Gitee