mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: fix FixedLlugin disapprear after drag
after drag nothing deal with item update log:
This commit is contained in:
parent
b69a220b05
commit
fe75a3af39
@ -813,7 +813,7 @@ void MainPanelControl::startDrag(DockItem *dockItem)
|
||||
appItem->setDraging(false);
|
||||
appItem->undock();
|
||||
}
|
||||
} else if (m_dragIndex == -1) {
|
||||
} else {
|
||||
m_appDragWidget = nullptr;
|
||||
item->setDraging(false);
|
||||
item->update();
|
||||
|
@ -704,8 +704,8 @@ void DockPluginController::onConfigChanged(const QString &key, const QVariant &v
|
||||
} else if (canDock && !isPluginLoaded(plugin)) {
|
||||
// 如果当前配置中包含当前插件,但是当前插件并未加载,那么就加载该插件
|
||||
addPluginItem(plugin, itemKey);
|
||||
// 只有工具插件是通过QWidget的方式进行显示的,因此,这里只处理工具插件
|
||||
if (plugin->flags() & PluginFlag::Type_Tool) {
|
||||
// 工具|固定区域 插件是通过QWidget的方式进行显示的
|
||||
if (plugin->flags() & (PluginFlag::Type_Tool | PluginFlag::Type_Fixed)) {
|
||||
QWidget *itemWidget = plugin->itemWidget(itemKey);
|
||||
if (itemWidget)
|
||||
itemWidget->setVisible(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user