Skip to content

Commit d7fd85d

Browse files
committed
fix: update connection for active window icon change
当前有多个源头触发 iconChanged: AppItem::currentActiveWindowChanged 和 DesktopfileAbstractParser::iconChanged。这会导致 iconName 的 loop binding。此修改将其中一个调整为 QueuedConnection 来避免循环绑定。 Log:
1 parent ba91781 commit d7fd85d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

panels/dock/taskmanager/appitem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void AppItem::updateCurrentActiveWindow(QPointer<AbstractWindow> window)
327327
}
328328

329329
m_currentActiveWindow = window;
330-
connect(m_currentActiveWindow.get(), &AbstractWindow::iconChanged, this, &AppItem::iconChanged);
330+
connect(m_currentActiveWindow.get(), &AbstractWindow::iconChanged, this, &AppItem::iconChanged, Qt::QueuedConnection);
331331

332332
Q_EMIT currentActiveWindowChanged();
333333
}

0 commit comments

Comments
 (0)