bugfix: can't show open-indicator-icon when use shortcut to launch app

tower: https://tower.im/projects/715dbdd34f694ea08f6de7888b7ffd7d/todos/c58e32f2809f49078a691848a569546e/

Change-Id: I968f382f2749b901798ef19637e9e45c572c5e20
This commit is contained in:
杨万青 2015-10-28 15:50:32 +08:00
parent e10513fb45
commit 4f886b9d42
Notes: Deepin Code Review 2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004
Verified+1: <wangyanli@linuxdeepin.com>
Code-Review+2: <mr.asianwang@gmail.com>
Submitted-by: <mr.asianwang@gmail.com>
Submitted-at: Wed, 28 Oct 2015 17:50:42 +0800
Reviewed-on: https://cr.deepin.io/8118
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 4 additions and 4 deletions

View File

@ -121,11 +121,12 @@ bool AppBackground::getIsActived()
void AppBackground::setIsActived(bool value)
{
m_isActived = value;
if (!m_isActived)
if (!m_isActived) {
m_activeLabel->hide();
else if (m_isInit && !m_bePress && getIsFashionMode()){
m_bePress = false;
}
else if (!m_bePress && getIsFashionMode()){
m_activeLabel->show();
m_isInit = false;
}
style()->unpolish(this);

View File

@ -76,7 +76,6 @@ private:
void onDockModeChanged();
private:
bool m_isInit = true;
bool m_bePress = false;
bool m_isActived = false;
bool m_isCurrentOpened = false;