mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-23 02:50:12 +03:00
enabled customIndicator toggle button
This commit is contained in:
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…
x
Reference in New Issue
Block a user