UserActionsMenu: Use an icon for the "Move to Desktop" -> "New Desktop" action

Taken from a pager applet, where all actions have icons. Worth porting
to task manager as well.
This commit is contained in:
ivan tkachenko 2022-08-28 15:33:07 +03:00
parent a1ed313a42
commit e9cd8be36d
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -563,7 +563,9 @@ void UserActionsMenu::desktopPopupAboutToShow()
}
m_desktopMenu->addSeparator();
action = m_desktopMenu->addAction(i18nc("Create a new desktop and move the window there", "&New Desktop"));
action->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
connect(action, &QAction::triggered, this, [this]() {
if (!m_window) {
return;