feat: 解决应用图标显示为空问题

应用的rect()为空时,继续循环调用,等待任务栏唤出.

Log: 优化任务栏智能隐藏模式下应用显示效果
Task: https://pms.uniontech.com/zentao/task-view-93128.html
Influence: 任务栏-智能隐藏模式-企业微信闪烁时,任务栏显示隐藏时应用图标显示效果
Change-Id: I320fd0cd3121c0ee1e3778506195ce1eadf8627a
This commit is contained in:
songwentao 2021-11-30 15:09:34 +08:00
parent 266c311a45
commit fdcf407f65
2 changed files with 3 additions and 2 deletions

View File

@ -684,6 +684,9 @@ void AppItem::playSwingEffect()
if (m_swingEffectView != nullptr)
return;
if (rect().isEmpty())
return checkAttentionEffect();
stopSwingEffect();
QPair<QGraphicsView *, QGraphicsItemAnimation *> pair = SwingEffect(

View File

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