mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: blank in the plugin area after recorder screen
deepin-screen-recorder dock 插件有 Attribute_ForceDock flag DockPluginController 判断是否需要存在dock上的逻辑判断了这个逻辑 在 valuechanged 时重新又把该插件加入到了dock上。没有录制中该插件没有图标 Issue: https://github.com/linuxdeepin/developer-center/issues/4215
This commit is contained in:
parent
ccd2d3f586
commit
07b4efd267
@ -703,6 +703,11 @@ void DockPluginController::onConfigChanged(const QString &key, const QVariant &v
|
||||
itemWidget->setVisible(false);
|
||||
} else if (canDock && !isPluginLoaded(plugin)) {
|
||||
// 如果当前配置中包含当前插件,但是当前插件并未加载,那么就加载该插件
|
||||
if (!pluginNames.contains(plugin->pluginName())) {
|
||||
// deepin-screen-recorder has Attribute_ForceDock flag
|
||||
// FIX https://github.com/linuxdeepin/developer-center/issues/4215
|
||||
continue;
|
||||
}
|
||||
addPluginItem(plugin, itemKey);
|
||||
// 工具|固定区域 插件是通过QWidget的方式进行显示的
|
||||
if (plugin->flags() & (PluginFlag::Type_Tool | PluginFlag::Type_Fixed)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user