!27 fix Username to long and ends the display
From: @tanyulong2021 Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
04938a211a
48
0008-Username-to-long-and-ends-the-display.patch
Normal file
48
0008-Username-to-long-and-ends-the-display.patch
Normal file
@ -0,0 +1,48 @@
|
||||
From 2b6ad995607e60a9674f31fbec3f317f2eecb9c7 Mon Sep 17 00:00:00 2001
|
||||
From: tanyulong2021 <tanyulong@kylinos.cn>
|
||||
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 @@
|
||||
</message>
|
||||
<message>
|
||||
<source>Password</source>
|
||||
- <translation type="obsolete">密码</translation>
|
||||
+ <translation>密码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.ui" line="156"/>
|
||||
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 <QPixmap>
|
||||
#include <QFontMetrics>
|
||||
#include <QtMath>
|
||||
-
|
||||
+#include <QAbstractItemView>
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#include <libintl.h>
|
||||
@@ -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
|
||||
|
||||
@ -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 <tanyulong@kylinos.cn> - 1.2.1-12
|
||||
- Username to long and ends the display
|
||||
|
||||
* Thu Aug 04 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-11
|
||||
- control file add opencv complication dependencies
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user