mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
not show trash in plugins context menu under efficient mode
https://github.com/linuxdeepin/internal-discussion/issues/1271
This commit is contained in:
parent
9d03eb1d6c
commit
7338d8fb83
@ -237,6 +237,11 @@ void DockSettings::showDockSettingsMenu()
|
||||
const QString &name = p->pluginName();
|
||||
const QString &display = p->pluginDisplayName();
|
||||
|
||||
// do not show trash in context menu under Efficient mode
|
||||
if (m_displayMode == Efficient && name == "trash") {
|
||||
continue;
|
||||
}
|
||||
|
||||
QAction *act = new QAction(display, this);
|
||||
act->setCheckable(true);
|
||||
act->setChecked(enable);
|
||||
|
Loading…
x
Reference in New Issue
Block a user