mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
restore signal registering that was lost
This commit is contained in:
parent
e740bd3803
commit
06aef0e30d
@ -233,6 +233,8 @@ void View::init()
|
||||
//! used in order to disconnect it when it should NOT be called because it creates crashes
|
||||
connect(this, &View::availableScreenRectChangedFrom, m_corona, &Latte::Corona::availableScreenRectChangedFrom);
|
||||
connect(this, &View::availableScreenRegionChangedFrom, m_corona, &Latte::Corona::availableScreenRegionChangedFrom);
|
||||
connect(m_corona, &Latte::Corona::availableScreenRectChangedFrom, this, &View::availableScreenRectChangedFromSlot);
|
||||
connect(m_corona, &Latte::Corona::availableScreenRectChanged, this, &View::availableScreenRectChangedForViewParts);
|
||||
|
||||
connect(this, &View::byPassWMChanged, this, &View::saveConfig);
|
||||
connect(this, &View::isPreferredForShortcutsChanged, this, &View::saveConfig);
|
||||
@ -257,7 +259,6 @@ void View::init()
|
||||
connect(m_corona->indicatorFactory(), &Latte::Indicator::Factory::pluginsUpdated, this, &View::reloadSource);
|
||||
//! View sends this signal in order to avoid crashes from ViewPart::Indicator when the view is recreated
|
||||
connect(m_corona->indicatorFactory(), &Latte::Indicator::Factory::customPluginsChanged, this, &View::customPluginsChanged);
|
||||
connect(m_corona, &Latte::Corona::availableScreenRectChanged, this, &View::availableScreenRectChangedForViewParts);
|
||||
|
||||
///!!!!!
|
||||
rootContext()->setContextProperty(QStringLiteral("latteView"), this);
|
||||
@ -297,8 +298,8 @@ void View::disconnectSensitiveSignals()
|
||||
{
|
||||
disconnect(this, &View::availableScreenRectChangedFrom, m_corona, &Latte::Corona::availableScreenRectChangedFrom);
|
||||
disconnect(this, &View::availableScreenRegionChangedFrom, m_corona, &Latte::Corona::availableScreenRegionChangedFrom);
|
||||
disconnect(m_corona, &Latte::Corona::availableScreenRectChanged, this, &View::availableScreenRectChangedForViewParts);
|
||||
disconnect(m_corona, &Latte::Corona::availableScreenRectChangedFrom, this, &View::availableScreenRectChangedFromSlot);
|
||||
disconnect(m_corona, &Latte::Corona::availableScreenRectChanged, this, &View::availableScreenRectChangedForViewParts);
|
||||
|
||||
setLayout(nullptr);
|
||||
|
||||
@ -486,6 +487,7 @@ void View::updateAbsoluteGeometry(bool bypassChecks)
|
||||
//! this is needed in order to update correctly the screenGeometries
|
||||
if (visibility() && corona() && visibility()->mode() == Types::AlwaysVisible) {
|
||||
//! main use of BYPASSCKECKS is from Positioner when the view changes screens
|
||||
|
||||
emit availableScreenRectChangedFrom(this);
|
||||
emit availableScreenRegionChangedFrom(this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user