mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 应用图标状态显示异常
1.应用图标状态不对; 2.打开wine应用时显示了几个多余的图标。 Log: 修复任务栏应用图标显示异常的问题。 Bug: https://pms.uniontech.com/zentao/bug-view-61394.html Change-Id: Ib3ad2b4115ce90d58e82809e6075a6e398a6af5a
This commit is contained in:
parent
fc4fdc455a
commit
10b36aed8a
@ -141,6 +141,11 @@ AppItem::~AppItem()
|
||||
m_appNameTips->deleteLater();
|
||||
}
|
||||
|
||||
void AppItem::checkEntry()
|
||||
{
|
||||
m_itemEntryInter->Check();
|
||||
}
|
||||
|
||||
const QString AppItem::appId() const
|
||||
{
|
||||
return m_id;
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
explicit AppItem(const QDBusObjectPath &entry, QWidget *parent = nullptr);
|
||||
~AppItem() override;
|
||||
|
||||
void checkEntry() override;
|
||||
const QString appId() const;
|
||||
bool isValid() const;
|
||||
void updateWindowIconGeometries();
|
||||
|
@ -67,6 +67,7 @@ public slots:
|
||||
void showPopupApplet(QWidget *const applet);
|
||||
void hidePopup();
|
||||
virtual void setDraging(bool bDrag);
|
||||
virtual void checkEntry() {}
|
||||
|
||||
bool isDragging();
|
||||
signals:
|
||||
|
@ -345,6 +345,7 @@ void MainPanelControl::insertItem(int index, DockItem *item)
|
||||
QTimer::singleShot(0, [ = ] {
|
||||
updatePluginsLayout();
|
||||
});
|
||||
item->checkEntry();
|
||||
}
|
||||
|
||||
void MainPanelControl::removeItem(DockItem *item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user