!101 modify displayed size is zero after the installation and download of system upate completed
From: @tanyulong2021 Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
8a99fd274a
@ -0,0 +1,26 @@
|
||||
From e896e60bb4e3eae9fa72cd33d8659b7962883379 Mon Sep 17 00:00:00 2001
|
||||
From: tanyulong2021 <tanyulong@kylinos.cn>
|
||||
Date: Fri, 29 Jul 2022 10:44:19 +0800
|
||||
Subject: [PATCH] modify displayed size after the installation and download of
|
||||
system update completed
|
||||
|
||||
---
|
||||
plugins/security-updates/upgrade/src/appupdate.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/plugins/security-updates/upgrade/src/appupdate.cpp b/plugins/security-updates/upgrade/src/appupdate.cpp
|
||||
index 14734b0..ad4153e 100644
|
||||
--- a/plugins/security-updates/upgrade/src/appupdate.cpp
|
||||
+++ b/plugins/security-updates/upgrade/src/appupdate.cpp
|
||||
@@ -393,7 +393,7 @@ void AppUpdateWid::updateAppUi(QString name)
|
||||
QFontMetrics fontWidth(someInfoEdit->font());//得到每个字符的宽度
|
||||
QString StrMsg = fontWidth.elidedText(chlog, Qt::ElideRight,600);//最大宽度
|
||||
someInfoEdit->append(StrMsg);
|
||||
- if(appAllMsg.msg.allSize == 0)
|
||||
+ if(appAllMsg.msg.allSize == 0 || appAllMsg.packageSize == 0)
|
||||
{
|
||||
someInfoEdit->append(tr("Download size:")+QString(modifySizeUnit(appAllMsg.packageSize)));
|
||||
// someInfoEdit->append(tr("下载大小:")+QString(modifySizeUnit(appAllMsg.packageSize)));
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: ukui-control-center
|
||||
Version: 3.0.1
|
||||
Release: 26
|
||||
Release: 27
|
||||
Summary: utilities to configure the UKUI desktop
|
||||
License: GPL-2+
|
||||
URL: http://www.ukui.org
|
||||
@ -97,6 +97,7 @@ Suggests: ukui-settings-daemon
|
||||
|
||||
Patch01:Modify-the-icon-displayed-on-the-tray.patch
|
||||
Patch02:Add-dependency-ddcutil.patch
|
||||
Patch03:modify-displayed-size-after-the-installation-and-download-of-system-update.patch
|
||||
|
||||
%description
|
||||
The UKUI control center contains configuration applets for the UKUI desktop,
|
||||
@ -108,6 +109,7 @@ Patch02:Add-dependency-ddcutil.patch
|
||||
%setup -q
|
||||
%patch01 -p1
|
||||
%patch02 -p1
|
||||
%patch03 -p1
|
||||
|
||||
%build
|
||||
qmake-qt5
|
||||
@ -155,6 +157,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 29 2022 tanyulong <tanyulong@kylinos.cn> - 3.0.1-27
|
||||
- modify displayed size after the installation and download of system update completed
|
||||
|
||||
* Thu Jul 28 2022 tanyulong <tanyulong@kylinos.cn> - 3.0.1-26
|
||||
- add dependency ddcutil to make HDMI brightness adjustment available
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user