From dcb3c2f9a2e66da83b71617e9d80862481d8112b Mon Sep 17 00:00:00 2001 From: tanghongyao Date: Mon, 1 Jul 2024 16:40:22 +0800 Subject: [PATCH] fix: in the Community Edition, right clicking to modify the account information has no reaction Determine the system version and pass different parameters to the DBUS interface ShowPage according to the version. Log: in the Community Edition, right clicking to modify the account information has no reaction Bug: https://pms.uniontech.com/bug-view-252625.html --- .../model/accounts_info_model.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deepin-system-monitor-main/model/accounts_info_model.cpp b/deepin-system-monitor-main/model/accounts_info_model.cpp index 88fbe134..8e999304 100644 --- a/deepin-system-monitor-main/model/accounts_info_model.cpp +++ b/deepin-system-monitor-main/model/accounts_info_model.cpp @@ -230,6 +230,14 @@ bool AccountsInfoModel::LogoutByUserName(const QString &userName) void AccountsInfoModel::EditAccount() { - if (m_controlInter) - m_controlInter->call("ShowPage", "accounts", "Accounts Detail"); + if (m_controlInter) { + bool version = common::systemInfo().isOldVersion(); + if (version) { + //专业版v20接口:ShowPage(String module, String page) + m_controlInter->call("ShowPage", "accounts", "Accounts Detail"); + } else if (!version) { + //社区版V23接口:ShowPage(String url) + m_controlInter->call("ShowPage", "accounts"); + } + } }