mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
bugfix: stop preview's animation when hide preview
Change-Id: Ie04c83241b26e069d15dd31c8feb853398771c1f
This commit is contained in:
parent
99cf01434a
commit
ce78366610
Notes:
Deepin Code Review
2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: <mr.asianwang@gmail.com> Submitted-by: <mr.asianwang@gmail.com> Submitted-at: Mon, 19 Oct 2015 16:25:12 +0800 Reviewed-on: https://cr.deepin.io/7862 Project: dde/dde-dock Branch: refs/heads/master
@ -42,8 +42,10 @@ void PreviewFrame::hidePreview(int interval)
|
||||
{
|
||||
m_showTimer->stop();
|
||||
|
||||
if (interval <= 0)
|
||||
if (interval <= 0) {
|
||||
m_animation->stop();
|
||||
hide();
|
||||
}
|
||||
else
|
||||
m_hideTimer->start(interval);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user