From 2b6ad995607e60a9674f31fbec3f317f2eecb9c7 Mon Sep 17 00:00:00 2001 From: tanyulong2021 Date: Mon, 19 Dec 2022 13:27:29 +0800 Subject: [PATCH] Username to long and ends the display --- polkit-agent/i18n_ts/zh_CN.ts | 2 +- polkit-agent/src/mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/polkit-agent/i18n_ts/zh_CN.ts b/polkit-agent/i18n_ts/zh_CN.ts index 337765d..0ebbaed 100755 --- a/polkit-agent/i18n_ts/zh_CN.ts +++ b/polkit-agent/i18n_ts/zh_CN.ts @@ -23,7 +23,7 @@ Password - 密码 + 密码 diff --git a/polkit-agent/src/mainwindow.cpp b/polkit-agent/src/mainwindow.cpp index 7a74bb1..a88431a 100755 --- a/polkit-agent/src/mainwindow.cpp +++ b/polkit-agent/src/mainwindow.cpp @@ -24,7 +24,7 @@ #include #include #include - +#include #include #include #include @@ -234,7 +234,7 @@ void MainWindow::setPrompt(const QString &text, bool echo) QString prompt = text; if(text == "Password: ") - prompt = tr("Password: "); + prompt = tr("Password"); ui->lblPrompt->setText(prompt); ui->lePassword->setEchoMode(echo ? QLineEdit::Normal : QLineEdit::Password); -- 2.33.0