From 0574a73fb86002525cf20d9228437bede9f1b79d Mon Sep 17 00:00:00 2001 From: tanyulong2021 Date: Mon, 19 Dec 2022 13:37:13 +0800 Subject: [PATCH] fix Username to long and ends the display --- ...sername-to-long-and-ends-the-display.patch | 48 +++++++++++++++++++ ukui-biometric-auth.spec | 7 ++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 0008-Username-to-long-and-ends-the-display.patch diff --git a/0008-Username-to-long-and-ends-the-display.patch b/0008-Username-to-long-and-ends-the-display.patch new file mode 100644 index 0000000..690e3c2 --- /dev/null +++ b/0008-Username-to-long-and-ends-the-display.patch @@ -0,0 +1,48 @@ +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 + diff --git a/ukui-biometric-auth.spec b/ukui-biometric-auth.spec index 7f5f99a..c263126 100644 --- a/ukui-biometric-auth.spec +++ b/ukui-biometric-auth.spec @@ -4,7 +4,7 @@ Name: ukui-biometric-auth Summary: ukui-biometric-auth Version: 1.2.1 -Release: 11 +Release: 12 License: GPL-3+ URL: https://github.com/ukui/ukui-biometric-auth @@ -20,6 +20,7 @@ Patch3: 0004-solve-the-problem-that-ukui-greeter-wayland-can-t-use-biometric-au Patch4: 0005-fix-the-problem-that-the-probability-window-is-not-displayed-in-the-center-of-screen.patch Patch5: 0006-can-t-exit-with-ctrl-c-using-biometric-autentication.patch Patch6: 0007-add-opencv-complication-dependencies.patch +Patch7: 0008-Username-to-long-and-ends-the-display.patch %description ukui-biometric-auth @@ -57,6 +58,7 @@ biometric-auth package. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build mkdir build @@ -91,6 +93,9 @@ make DESTDIR=$RPM_BUILD_ROOT install %changelog +* Mon Dec 19 2022 tanyulong - 1.2.1-12 +- Username to long and ends the display + * Thu Aug 04 2022 tanyulong - 1.2.1-11 - control file add opencv complication dependencies