!68 [sync] PR-66: disable Suspend and Sleep
From: @openeuler-sync-bot Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
7625bab09d
47
disable-Suspend-and-Sleep-of-ukui-panel.patch
Normal file
47
disable-Suspend-and-Sleep-of-ukui-panel.patch
Normal file
@ -0,0 +1,47 @@
|
||||
From cd1b0cde4ea3b02bd3c3169a1e6142bc2a680a90 Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
Date: Wed, 14 Jun 2023 16:20:27 +0800
|
||||
Subject: [PATCH] disable Suspend and Sleep of ukui-panel
|
||||
|
||||
---
|
||||
plugin-startbar/startmenu_button.cpp | 8 ++++----
|
||||
1 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/plugin-startbar/startmenu_button.cpp b/plugin-startbar/startmenu_button.cpp
|
||||
index aade6e4..0285321 100644
|
||||
--- a/plugin-startbar/startmenu_button.cpp
|
||||
+++ b/plugin-startbar/startmenu_button.cpp
|
||||
@@ -67,10 +67,10 @@ void StartMenuButton::contextMenuEvent(QContextMenuEvent *event)
|
||||
rightPressMenu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
QMenu *pUserAction=new QMenu(tr("User Action")); //用户操作
|
||||
- QMenu *pSleepHibernate=new QMenu(tr("Sleep or Hibernate")); //重启或休眠
|
||||
+ //QMenu *pSleepHibernate=new QMenu(tr("Sleep or Hibernate")); //重启或休眠
|
||||
QMenu *pPowerSupply=new QMenu(tr("Power Supply")); //电源
|
||||
rightPressMenu->addMenu(pUserAction);
|
||||
- rightPressMenu->addMenu(pSleepHibernate);
|
||||
+ //rightPressMenu->addMenu(pSleepHibernate);
|
||||
rightPressMenu->addMenu(pPowerSupply);
|
||||
|
||||
pUserAction->addAction(QIcon::fromTheme("system-lock-screen-symbolic"),
|
||||
@@ -87,7 +87,7 @@ void StartMenuButton::contextMenuEvent(QContextMenuEvent *event)
|
||||
tr("Logout"),
|
||||
this, SLOT(SessionLogout())
|
||||
); //注销
|
||||
-
|
||||
+/*
|
||||
if(QString::compare(getCanHibernateResult(),"yes") == 0){
|
||||
pSleepHibernate->addAction(QIcon::fromTheme("kylin-sleep-symbolic"),
|
||||
tr("Hibernate Mode"),
|
||||
@@ -100,7 +100,7 @@ void StartMenuButton::contextMenuEvent(QContextMenuEvent *event)
|
||||
tr("Sleep Mode"),
|
||||
this, SLOT(SessionSuspend())
|
||||
); //睡眠
|
||||
- }
|
||||
+ }*/
|
||||
pPowerSupply->addAction(QIcon::fromTheme("ukui-system-restart-symbolic"),
|
||||
tr("Restart"),
|
||||
this, SLOT(SessionReboot())
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: ukui-panel
|
||||
Version: 3.1.0
|
||||
Release: 8
|
||||
Release: 9
|
||||
Summary: ukui desktop panel
|
||||
License: LGPL-2.0-or-later and GPL-2.0-or-later and BSD
|
||||
URL: http://www.ukui.org
|
||||
@ -9,6 +9,9 @@ Patch01: 0001-fix-translation-problem-of-ukui-panel.patch
|
||||
Patch02: 0002-fix-translation-of-calendar.patch
|
||||
Patch03: 0003-fix-nightnode-button-nodisplay.patch
|
||||
Patch04: 0004-fix-the-backlight-of-nightmode-button.patch
|
||||
%if 0%{?kylin}
|
||||
Patch05: disable-Suspend-and-Sleep-of-ukui-panel.patch
|
||||
%endif
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: alsa-lib-devel
|
||||
@ -60,6 +63,9 @@ Recommends: time-shutdown
|
||||
%patch02 -p1
|
||||
%patch03 -p1
|
||||
%patch04 -p1
|
||||
%if 0%{?kylin}
|
||||
%patch05 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
mkdir build && cd build
|
||||
@ -82,6 +88,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_datadir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jun 14 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.0-9
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: disable Suspend and Sleep of ukui-panel
|
||||
|
||||
* Thu Mar 16 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.0-8
|
||||
- fix the backlight of nightmode button
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user