From 8b12ec725da98443631ce4a6f91b2ef91cc952ab Mon Sep 17 00:00:00 2001 From: hantengc Date: Tue, 7 Jan 2025 17:27:52 +0800 Subject: [PATCH] do not display the exit button on the UKUI desktop environment --- src/modules/notificationitem/dbusmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/notificationitem/dbusmenu.cpp b/src/modules/notificationitem/dbusmenu.cpp index b8e6a99f9..ba69ce485 100644 --- a/src/modules/notificationitem/dbusmenu.cpp +++ b/src/modules/notificationitem/dbusmenu.cpp @@ -192,7 +192,8 @@ void DBusMenu::fillLayoutItem( } appendSubItem(subLayoutItems, BII_Configure, depth, propertyNames); appendSubItem(subLayoutItems, BII_Restart, depth, propertyNames); - if (getDesktopType() != DesktopType::DEEPIN) { + if ((getDesktopType() != DesktopType::DEEPIN) && + (getDesktopType() != DesktopType::UKUI)) { appendSubItem(subLayoutItems, BII_Exit, depth, propertyNames); } } else if (id == BII_InputMethodGroup) {