!124 modify icon theme not display

From: @peijiankang 
Reviewed-by: @dou33 
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2022-12-30 03:18:58 +00:00 committed by Gitee
commit bb17f0fa44
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From d155a8511018a478fc55486075761c664913ef34 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Thu, 29 Dec 2022 14:08:05 +0800
Subject: [PATCH] modify icon theme not display
---
shell/utils/utils.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shell/utils/utils.cpp b/shell/utils/utils.cpp
index 9c97e3e..24d5f56 100644
--- a/shell/utils/utils.cpp
+++ b/shell/utils/utils.cpp
@@ -187,9 +187,9 @@ bool Utils::isCommunity()
QString filename = "/etc/os-release";
QSettings osSettings(filename, QSettings::IniFormat);
- QString versionID = osSettings.value("VERSION_ID").toString();
+ QString versionID = osSettings.value("ID").toString();
- if (versionID.compare("22.04", Qt::CaseSensitive)) {
+ if (versionID.compare("openEuler", Qt::CaseSensitive)) {
return false;
}
return true;
--
2.33.0

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-control-center
Version: 3.1.2
Release: 5
Release: 6
Summary: utilities to configure the UKUI desktop
License: GPL-2+
URL: http://www.ukui.org
@ -10,6 +10,7 @@ Patch01: 0001-fix-compile-error-of-ukui-control-center.patch
Patch02: 0001-modify-version-info-error.patch
Patch03: 0003-fix-power-missing-issue.patch
Patch05: 0005-Fix-the-problem-of-displaying-none-in-the-interface-version-information.patch
Patch07: 0007-modify-icon-theme-not-display.patch
BuildRequires: qt5-qtsvg-devel
@ -122,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Dec 29 2022 peijiankang <peijiankang@kylinos.cn> - 3.1.2-6
- modify icon theme not display
* Fri Dec 23 2022 peijiankang <peijiankang@kylinos.cn> - 3.1.2-5
- add patch5: 0005-Fix-the-problem-of-displaying-none-in-the-interface-version-information.patch