From 001fdb20b462c62369da93e86e58207a6d769c19 Mon Sep 17 00:00:00 2001 From: hantengc Date: Tue, 21 Jan 2025 17:24:16 +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 10e33c50b..641019592 100644 --- a/src/modules/notificationitem/dbusmenu.cpp +++ b/src/modules/notificationitem/dbusmenu.cpp @@ -194,7 +194,8 @@ void DBusMenu::fillLayoutItem( appendSubItem(subLayoutItems, BII_Restart, depth, propertyNames); } if (parent_->instance()->canRestart() && - getDesktopType() != DesktopType::DEEPIN) { + getDesktopType() != DesktopType::DEEPIN && + getDesktopType() != DesktopType::UKUI) { appendSubItem(subLayoutItems, BII_Exit, depth, propertyNames); } } else if (id == BII_InputMethodGroup) {