fix: 修复多任务视图插件在开关特效功能时显示错误

在开启特效模式时,需要判断是否显示多任务视图插件

Log: 修复多任务视图插件显示异常
Bug: https://pms.uniontech.com/zentao/bug-view-85813.html
Change-Id: If87669e4a870757819a173437ac71d90c8efa1ed
This commit is contained in:
yanghongwei 2021-07-02 13:27:41 +08:00
parent 03102c905e
commit b5ca6f4b2f

View File

@ -44,11 +44,10 @@ MultitaskingPlugin::MultitaskingPlugin(QObject *parent)
if (!m_proxyInter || !m_pluginLoaded)
return;
if (DWindowManagerHelper::instance()->hasComposite()) {
if (DWindowManagerHelper::instance()->hasComposite() && !pluginIsDisable())
m_proxyInter->itemAdded(this, PLUGIN_KEY);
} else {
else
m_proxyInter->itemRemoved(this, PLUGIN_KEY);
}
});
}