mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix app preview is empty
Change-Id: I0aa375b0bd7bd6745a7e5c3e3fb60bfa47415853
This commit is contained in:
parent
b5f8253a9f
commit
e4cf250a28
Notes:
Deepin Code Review
2018-01-09 17:35:42 +08:00
Verified+1: Anonymous Coward #1000004 Verified+1: <yefei@linuxdeepin.com> Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Tue, 09 Jan 2018 17:35:42 +0800 Reviewed-on: https://cr.deepin.io/30223 Project: dde/dde-dock Branch: refs/heads/master
@ -165,6 +165,10 @@ void PreviewContainer::appendSnapWidget(const WId wid)
|
||||
m_windowListLayout->addWidget(snap);
|
||||
|
||||
m_snapshots.insert(wid, snap);
|
||||
|
||||
// refresh if visible
|
||||
if (isVisible())
|
||||
snap->fetchSnapshot();
|
||||
}
|
||||
|
||||
void PreviewContainer::enterEvent(QEvent *e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user