enabled customIndicator toggle button

pull/5/head
Michail Vourlakos 6 years ago
parent a461a66431
commit 02c388d2bf

@ -481,7 +481,11 @@ PlasmaComponents.Page {
id: indicatorStyleGroup
onCurrentChanged: {
if (current.checked) {
latteView.indicator.type = current.type
if (current === customIndicator.button) {
latteView.indicator.type = customIndicator.type
} else {
latteView.indicator.type = current.type
}
}
}
}
@ -509,6 +513,7 @@ PlasmaComponents.Page {
}
LatteExtraControls.CustomIndicatorButton {
id: customIndicator
Layout.fillWidth: true
checked: parent.type === type
checkable: true

@ -26,6 +26,7 @@ import org.kde.latte.components 1.0 as LatteComponents
LatteComponents.ComboBoxButton{
id: custom
buttonText: "Unity"
comboBoxTextRole: "name"
comboBoxIconRole: "icon"
@ -58,7 +59,7 @@ LatteComponents.ComboBoxButton{
comboBox.model = actionsModel;
if (latteView.indicator.customPluginsCount > 0) {
if (custom.type === latteView.indicator.type) {
comboBox.currentIndex = 0;
} else {
comboBox.currentIndex = -1;

Loading…
Cancel
Save