useractions: Add separator above the "Close" action

This matches other places in Plasma e.g. the task manager, where
there is a similarly placed separator.
This commit is contained in:
Joshua Goins 2023-05-24 23:53:18 -04:00
parent cdafbbbd6f
commit 6eff561234

View file

@ -331,6 +331,8 @@ void UserActionsMenu::init()
overflowAction->setText(i18n("&More Actions"));
overflowAction->setIcon(QIcon::fromTheme(QStringLiteral("overflow-menu")));
m_menu->addSeparator();
m_closeOperation = m_menu->addAction(i18n("&Close"));
m_closeOperation->setIcon(QIcon::fromTheme(QStringLiteral("window-close")));
setShortcut(m_closeOperation, QStringLiteral("Window Close"));