fix: 任务栏快捷面板的电池插件图标显示异常 (#822)

蓝牙插件和电源插件属于快捷面板区域插件, 不应该返回空的图标

Log: 修复任务栏快捷面板的电池插件图标显示异常的问题
Resolve: https://github.com/linuxdeepin/developer-center/issues/4004
Influence: 任务栏快捷面板显示
This commit is contained in:
dengbo 2023-04-12 09:57:30 +08:00 committed by GitHub
parent ec5c447264
commit b853cfa40e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -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";

View File

@ -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();