diff --git a/plugins/bluetooth/bluetoothplugin.cpp b/plugins/bluetooth/bluetoothplugin.cpp index b2f790518..272c78f12 100644 --- a/plugins/bluetooth/bluetoothplugin.cpp +++ b/plugins/bluetooth/bluetoothplugin.cpp @@ -126,9 +126,6 @@ void BluetoothPlugin::refreshIcon(const QString &itemKey) QIcon BluetoothPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType) { - if (dockPart == DockPart::QuickPanel) - return QIcon(); - QString iconFile; if (themeType == DGuiApplicationHelper::ColorType::DarkType) iconFile = ":/bluetooth-active-symbolic.svg"; diff --git a/plugins/power/powerplugin.cpp b/plugins/power/powerplugin.cpp index e9cb0434a..1e724c9ae 100644 --- a/plugins/power/powerplugin.cpp +++ b/plugins/power/powerplugin.cpp @@ -129,11 +129,6 @@ void PowerPlugin::setSortKey(const QString &itemKey, const int order) QIcon PowerPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType) { - // 快捷面板使用m_quickPanel - if (dockPart == DockPart::QuickPanel) { - return QIcon(); - } - const QPixmap pixmap = m_powerStatusWidget->getBatteryIcon(themeType); static QIcon batteryIcon; batteryIcon.detach();