Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: in the Community Edition, right clicking to modify the account i… #351

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions deepin-system-monitor-main/model/accounts_info_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@

void AccountsInfoModel::EditAccount()
{
if (m_controlInter)
m_controlInter->call("ShowPage", "accounts", "Accounts Detail");
if (m_controlInter) {
bool version = common::systemInfo().isOldVersion();
if (version) {

Check warning on line 235 in deepin-system-monitor-main/model/accounts_info_model.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Expression is always true because 'else if' condition is opposite to previous condition at line 235.
//专业版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");
}
}
}
Loading