fix: 拔掉显示器一段时间后插上,任务栏没有显示

拔掉最后一个显示器后,插上显示器没有及时更新dock

Log: 拔掉显示器一段时间后插上,任务栏没有显示
Bug: https://pms.uniontech.com/zentao/bug-view-43166.html
Change-Id: I800cc6e0cdd287e125cd9104af7b91e0647ad1a6
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/2512
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: qiumengdan <qiumengdan@uniontech.com>
Reviewed-by: niecheng <niecheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
This commit is contained in:
Nie Cheng 2020-08-20 17:05:11 +08:00 committed by niecheng
parent bdb736b4ea
commit 843355f5e8

View File

@ -307,6 +307,8 @@ void MultiScreenWorker::onMonitorListChanged(const QList<QDBusObjectPath> &mons)
for (auto op : ops)
if (!pathList.contains(op))
monitorRemoved(op);
//更新dock的显示,https://pms.uniontech.com/zentao/bug-view-43166.html
m_monitorUpdateTimer->start();
}
void MultiScreenWorker::monitorAdded(const QString &path)