multiple fixes for pages first loading/activating

work/spdx
Michail Vourlakos 4 years ago
parent 4b9b0e59b7
commit 0a877c017e

@ -103,10 +103,9 @@ FocusScope {
onAdvancedLevelChanged: { onAdvancedLevelChanged: {
//! switch to appearancePage when effectsPage becomes hidden because //! switch to appearancePage when effectsPage becomes hidden because
//! advancedLevel was disabled by the user //! advancedLevel was disabled by the user
/* if (!advancedLevel && tabGroup.currentTab === effectsPage) { if (!advancedLevel && tabBar.currentTab === effectsTabBtn) {
tabGroup.currentTab = appearancePage;
tabBar.currentTab = appearanceTabBtn; tabBar.currentTab = appearanceTabBtn;
}*/ }
} }
Component.onCompleted: { Component.onCompleted: {
@ -394,7 +393,17 @@ FocusScope {
pagesStackView.replace(pagesStackView.currentItem, behaviorPage); pagesStackView.replace(pagesStackView.currentItem, behaviorPage);
} }
} }
Connections {
target: viewConfig
onIsReadyChanged: {
if (viewConfig.isReady) {
tabBar.currentTab = behaviorTabBtn;
} }
}
}
}
PlasmaComponents.TabButton { PlasmaComponents.TabButton {
id: appearanceTabBtn id: appearanceTabBtn
text: i18n("Appearance") text: i18n("Appearance")
@ -548,7 +557,8 @@ FocusScope {
Component.onCompleted: { Component.onCompleted: {
pagesStackView.push(tasksPage); pagesStackView.push(tasksPage);
pagesStackView.pop(tasksPage); pagesStackView.forwardSliding = true;
pagesStackView.replace(tasksPage, behaviorPage);
} }
} }
} }

@ -1027,11 +1027,14 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth Layout.maximumWidth: Layout.minimumWidth
text: i18n("Blur") text: i18n("Blur")
checked: plasmoid.configuration.blurEnabled
checkable: true checkable: true
enabled: showBackground.checked && LatteCore.WindowSystem.compositingActive enabled: showBackground.checked && LatteCore.WindowSystem.compositingActive
tooltip: i18n("Background is blurred underneath") tooltip: i18n("Background is blurred underneath")
readonly property int blurEnabled: plasmoid.configuration.blurEnabled
onBlurEnabledChanged: checked = blurEnabled;
onClicked: { onClicked: {
plasmoid.configuration.blurEnabled = checked plasmoid.configuration.blurEnabled = checked
} }
@ -1042,11 +1045,14 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth Layout.maximumWidth: Layout.minimumWidth
text: i18n("Shadows") text: i18n("Shadows")
checked: plasmoid.configuration.panelShadows
checkable: true checkable: true
enabled: showBackground.checked && LatteCore.WindowSystem.compositingActive && themeExtended.hasShadow enabled: showBackground.checked && LatteCore.WindowSystem.compositingActive && themeExtended.hasShadow
tooltip: i18n("Background shows its shadows") tooltip: i18n("Background shows its shadows")
readonly property int panelShadows: plasmoid.configuration.panelShadows
onPanelShadowsChanged: checked = panelShadows
onClicked: { onClicked: {
plasmoid.configuration.panelShadows = checked plasmoid.configuration.panelShadows = checked
} }
@ -1057,11 +1063,14 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth Layout.maximumWidth: Layout.minimumWidth
text: i18n("Outline") text: i18n("Outline")
checked: plasmoid.configuration.panelOutline
checkable: true checkable: true
enabled: showBackground.checked enabled: showBackground.checked
tooltip: i18n("Background draws a line for its borders. You can set the line size from Latte Preferences") tooltip: i18n("Background draws a line for its borders. You can set the line size from Latte Preferences")
readonly property int panelOutline: plasmoid.configuration.panelOutline
onPanelOutlineChanged: checked = panelOutline
onClicked: { onClicked: {
plasmoid.configuration.panelOutline = !plasmoid.configuration.panelOutline; plasmoid.configuration.panelOutline = !plasmoid.configuration.panelOutline;
} }
@ -1072,7 +1081,6 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth Layout.maximumWidth: Layout.minimumWidth
text: i18n("All Corners") text: i18n("All Corners")
checked: plasmoid.configuration.backgroundAllCorners
checkable: true checkable: true
enabled: showBackground.checked enabled: showBackground.checked
&& ((plasmoid.configuration.screenEdgeMargin===-1) /*no-floating*/ && ((plasmoid.configuration.screenEdgeMargin===-1) /*no-floating*/
@ -1081,6 +1089,10 @@ PlasmaComponents.Page {
&& plasmoid.configuration.maxLength===100)) && plasmoid.configuration.maxLength===100))
tooltip: i18n("Background draws all corners at all cases.") tooltip: i18n("Background draws all corners at all cases.")
readonly property int backgroundAllCorners: plasmoid.configuration.backgroundAllCorners
onBackgroundAllCornersChanged: checked = backgroundAllCorners
onClicked: { onClicked: {
plasmoid.configuration.backgroundAllCorners = !plasmoid.configuration.backgroundAllCorners; plasmoid.configuration.backgroundAllCorners = !plasmoid.configuration.backgroundAllCorners;
} }

Loading…
Cancel
Save