mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 修复Dbus接口获取默认插件不全、缺失
1.任务栏加载插件结束的信号没有触发 Log: 优化插件加载 Bug: https://pms.uniontech.com/zentao/bug-view-85856.html Change-Id: Ifbc58f917a6d2f8db8fe586f71109d099b5fe805
This commit is contained in:
parent
786d3588e2
commit
5e0d964a23
@ -247,18 +247,15 @@ void AbstractPluginsController::loadPlugin(const QString &pluginFile)
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
if (it.key().first == pluginFile) {
|
||||
m_pluginLoadMap.remove(it.key());
|
||||
QPair<QString, PluginsItemInterface *> newPair;
|
||||
newPair.first = pluginFile;
|
||||
newPair.second = interface;
|
||||
m_pluginLoadMap.insert(newPair, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (it.hasNext()) {
|
||||
m_pluginLoadMap.remove(it.key());
|
||||
QPair<QString, PluginsItemInterface *> newPair;
|
||||
newPair.first = pluginFile;
|
||||
newPair.second = interface;
|
||||
m_pluginLoadMap.insert(newPair, false);
|
||||
}
|
||||
|
||||
// 保存 PluginLoader 对象指针
|
||||
QMap<QString, QObject *> interfaceData;
|
||||
interfaceData["pluginloader"] = pluginLoader;
|
||||
|
Loading…
x
Reference in New Issue
Block a user