mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
recreateview:fix launchers group assignment
--after recreating a view, launchers group is now assigned again correctly. As it appears the problem was that Host.MyView ability was sending an isReady signal that was not accurate enough.
This commit is contained in:
parent
50177a8406
commit
544b83ebeb
@ -525,8 +525,6 @@ void Positioner::immediateSyncGeometry()
|
||||
availableScreenRect = QRect(-9999, -9999, m_view->screen()->geometry().width(), m_view->screen()->geometry().height());
|
||||
}
|
||||
|
||||
qDebug() << " ------------>> " << m_view->location() << " ___ " << availableScreenRect;
|
||||
|
||||
if (m_view->formFactor() == Plasma::Types::Vertical) {
|
||||
QString layoutName = m_view->layout() ? m_view->layout()->name() : QString();
|
||||
auto latteCorona = qobject_cast<Latte::Corona *>(m_view->corona());
|
||||
|
@ -12,11 +12,10 @@ import "./privates" as Ability
|
||||
|
||||
Ability.MyViewPrivate {
|
||||
view: latteView
|
||||
|
||||
isReady: latteView
|
||||
isReady: view && view.visibility && view.layout && view.effects && view.positioner
|
||||
|
||||
inNormalState: ((animations.needBothAxis.count === 0) && (animations.needLength.count === 0))
|
||||
|| (view && view.visibility.isHidden && !view.visibility.containsMouse && animations.needThickness.count === 0)
|
||||
|| (isReady && view.visibility.isHidden && !view.visibility.containsMouse && animations.needThickness.count === 0)
|
||||
isHidden: isReady && view.visibility.isHidden
|
||||
isShownPartially: isReady && (inSlidingIn || inSlidingOut)
|
||||
isShownFully: isReady && !isHidden && !inSlidingIn && !inSlidingOut
|
||||
@ -28,20 +27,20 @@ Ability.MyViewPrivate {
|
||||
|
||||
inSlidingIn: visibilityManager.inSlidingIn
|
||||
inSlidingOut: visibilityManager.inSlidingOut
|
||||
inRelocationAnimation: view && view.positioner && view.positioner.inRelocationAnimation
|
||||
inRelocationAnimation: isReady && view.positioner.inRelocationAnimation
|
||||
inRelocationHiding: visibilityManager.inRelocationHiding
|
||||
|
||||
badgesIn3DStyle: universalSettings ? universalSettings.badges3DStyle : true
|
||||
|
||||
alignment: plasmoid.configuration.alignment
|
||||
visibilityMode: view ? view.visibility.mode : LatteCore.Types.None
|
||||
visibilityMode: isReady ? view.visibility.mode : LatteCore.Types.None
|
||||
|
||||
backgroundOpacity: background.currentOpacity
|
||||
|
||||
lastUsedActivity: view && view.layout ? view.layout.lastUsedActivity : ""
|
||||
lastUsedActivity: isReady ? view.layout.lastUsedActivity : ""
|
||||
|
||||
appletsLayoutGeometry: view && view.effects ? view.effects.appletsLayoutGeometry : Qt.rect(0, 0, -1, -1)
|
||||
screenGeometry: view ? view.screenGeometry : plasmoid.screenGeometry
|
||||
appletsLayoutGeometry: isReady ? view.effects.appletsLayoutGeometry : Qt.rect(0, 0, -1, -1)
|
||||
screenGeometry: isReady ? view.screenGeometry : plasmoid.screenGeometry
|
||||
|
||||
containmentActions: isReady ? view.containmentActions : []
|
||||
|
||||
|
@ -55,7 +55,7 @@ AbilityDefinition.MyView {
|
||||
|
||||
Item {
|
||||
id: ref
|
||||
readonly property Item myView: bridge ? bridge.myView.host : local
|
||||
readonly property Item myView: bridge && bridge.myView ? bridge.myView.host : local
|
||||
}
|
||||
|
||||
//! Bridge - Client assignment
|
||||
|
Loading…
x
Reference in New Issue
Block a user