Loaders for all dock settings windows

--this way we make sure that plasmoid and latteView
objects are always available to them when needed
work/spdx
Michail Vourlakos 4 years ago
parent 55d0dde551
commit cbe9a588b8

@ -28,9 +28,11 @@ import org.kde.latte.private.containment 0.1 as LatteContainment
import "canvas" as CanvasComponent
Item{
id: root
Loader {
active: plasmoid && plasmoid.configuration && latteView
sourceComponent: Item{
id: root
readonly property bool isVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property bool isHorizontal: !isVertical
@ -150,4 +152,5 @@ Item{
id: settingsOverlay
anchors.fill: parent
}
}
}

@ -39,7 +39,10 @@ import org.kde.latte.components 1.0 as LatteComponents
import "pages" as Pages
import "../controls" as LatteExtraControls
FocusScope {
Loader {
active: plasmoid && plasmoid.configuration && latteView
sourceComponent: FocusScope {
id: dialog
width: appliedWidth
height: appliedHeight
@ -644,4 +647,5 @@ FocusScope {
}
}
}
}
}

@ -35,7 +35,10 @@ import org.kde.latte.core 0.2 as LatteCore
import "../controls" as LatteExtraControls
FocusScope {
Loader {
active: plasmoid && plasmoid.configuration && latteView
sourceComponent: FocusScope {
id: dialog
width: typeSettings.width + units.smallSpacing * 4
@ -57,7 +60,6 @@ FocusScope {
Component.onCompleted: viewConfig.updateEffects()
}
LatteExtraControls.TypeSelection{
id: typeSettings
anchors.centerIn: parent
@ -70,4 +72,5 @@ FocusScope {
}
}
}
}
}

Loading…
Cancel
Save