feat: 修改点击回收站图标行为

之前是调用命令打开回收站,现改为调用dtk接口,多次点击只会弹出一个回收站窗口。

Log: 修改点击任务栏回收站图标行为。
Task: https://pms.uniontech.com/zentao/task-view-58313.html
Change-Id: I6c686f60d466e51b763c7157fa2148ccb41fc0ee
This commit is contained in:
Zhang Qipeng 2021-01-20 17:53:52 +08:00
parent 0432a458bc
commit dc7fb6e824

View File

@ -28,6 +28,7 @@
#include "../../widgets/tipswidget.h"
#include <DApplication>
#include <DDesktopServices>
#define PLUGIN_STATE_KEY "enable"
@ -110,9 +111,10 @@ QWidget *TrashPlugin::itemPopupApplet(const QString &itemKey)
const QString TrashPlugin::itemCommand(const QString &itemKey)
{
Q_UNUSED(itemKey);
DDesktopServices::showFolder(QUrl("trash:///"));
// return QString();
return "gio open trash:///";
return QString();
// return "gio open trash:///";
}
const QString TrashPlugin::itemContextMenu(const QString &itemKey)