1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-09 05:18:18 +03:00

consider view::hidden state after slide-out

This commit is contained in:
Michail Vourlakos 2019-05-11 09:08:18 +03:00
parent bea8247b84
commit a6b8fbcaff
3 changed files with 6 additions and 1 deletions

View File

@ -53,6 +53,7 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view)
m_wm = m_corona->wm();
connect(this, &VisibilityManager::slideInFinished, this, &VisibilityManager::updateHiddenState);
connect(this, &VisibilityManager::slideOutFinished, this, &VisibilityManager::updateHiddenState);
if (m_latteView) {
connect(m_latteView, &Latte::View::eventTriggered, this, &VisibilityManager::viewEventManager);

View File

@ -109,6 +109,7 @@ signals:
void mustBeShown();
void mustBeHide();
void slideOutFinished();
void slideInFinished();
void modeChanged();

View File

@ -669,11 +669,14 @@ Item{
manager.sendSlidingOutAnimationEnded();
}
}
latteView.visibility.slideOutFinished();
}
function init() {
if (!latteView.visibility.blockHiding)
if (!latteView.visibility.blockHiding) {
start();
}
}
}