update struts when normalThickness value changes

--the issue was pretty obvious when the user was
using a top view with thickness < 24px. and a
bottom view always visible. In that case the top
view struts on startup did not decrease below
at 24px.

BUG:410707
pull/8/head
Michail Vourlakos 6 years ago
parent 8a9224ed3c
commit bf66aa35a7

@ -177,14 +177,17 @@ void VisibilityManager::setMode(Latte::Types::Visibility mode)
updateStrutsBasedOnLayoutsAndActivities();
}
m_connections[base] = connect(m_latteView, &Latte::View::normalThicknessChanged, this, [&]() {
updateStrutsBasedOnLayoutsAndActivities();
});
m_connections[base] = connect(m_corona->layoutsManager(), &Layouts::Manager::currentLayoutNameChanged, this, [&]() {
m_connections[base+1] = connect(m_corona->layoutsManager(), &Layouts::Manager::currentLayoutNameChanged, this, [&]() {
if (m_corona && m_corona->layoutsManager()->memoryUsage() == Types::MultipleLayouts) {
updateStrutsBasedOnLayoutsAndActivities(true);
}
});
m_connections[base+1] = connect(m_latteView, &Latte::View::activitiesChanged, this, [&]() {
m_connections[base+2] = connect(m_latteView, &Latte::View::activitiesChanged, this, [&]() {
if (m_corona && m_corona->layoutsManager()->memoryUsage() == Types::MultipleLayouts) {
updateStrutsBasedOnLayoutsAndActivities(true);
}

Loading…
Cancel
Save