mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
feat: 解决应用图标显示为空问题
应用的rect()为空时,继续循环调用,等待任务栏唤出. Log: 优化任务栏智能隐藏模式下应用显示效果 Task: https://pms.uniontech.com/zentao/task-view-93128.html Influence: 任务栏-智能隐藏模式-企业微信闪烁时,任务栏显示隐藏时应用图标显示效果 Change-Id: I320fd0cd3121c0ee1e3778506195ce1eadf8627a
This commit is contained in:
parent
266c311a45
commit
fdcf407f65
@ -684,6 +684,9 @@ void AppItem::playSwingEffect()
|
||||
if (m_swingEffectView != nullptr)
|
||||
return;
|
||||
|
||||
if (rect().isEmpty())
|
||||
return checkAttentionEffect();
|
||||
|
||||
stopSwingEffect();
|
||||
|
||||
QPair<QGraphicsView *, QGraphicsItemAnimation *> pair = SwingEffect(
|
||||
|
@ -253,10 +253,8 @@ void MultiScreenWorker::hideAniFinished()
|
||||
emit requestUpdateLayout();
|
||||
|
||||
const QRect rect = dockRect(m_ds.current(), m_position, HideMode::KeepHidden, m_displayMode);
|
||||
|
||||
parent()->setFixedSize(rect.size());
|
||||
parent()->setGeometry(rect);
|
||||
|
||||
parent()->panel()->setFixedSize(rect.size());
|
||||
parent()->panel()->move(0, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user