1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

fix show indicator for buttons in behavior page

This commit is contained in:
Michail Vourlakos 2021-01-23 16:54:55 +02:00
parent 482c4fdf47
commit 4b9b0e59b7
3 changed files with 12 additions and 15 deletions

View File

@ -103,10 +103,10 @@ FocusScope {
onAdvancedLevelChanged: {
//! switch to appearancePage when effectsPage becomes hidden because
//! advancedLevel was disabled by the user
if (!advancedLevel && tabGroup.currentTab === effectsPage) {
/* if (!advancedLevel && tabGroup.currentTab === effectsPage) {
tabGroup.currentTab = appearancePage;
tabBar.currentTab = appearanceTabBtn;
}
}*/
}
Component.onCompleted: {

View File

@ -689,10 +689,6 @@ PlasmaComponents.Page {
}
}
/*LatteComponents.SubHeader {
text: i18n("Empty Area")
}*/
ColumnLayout {
Layout.topMargin: units.smallSpacing
RowLayout {
@ -706,13 +702,16 @@ PlasmaComponents.Page {
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("Drag Active Window")
checked: plasmoid.configuration.dragActiveWindowEnabled
checkable: true
tooltip: i18n("The user can use left mouse button to drag and maximized/restore last active window from empty areas")
iconName: "transform-move"
readonly property int dragActiveWindowEnabled: plasmoid.configuration.dragActiveWindowEnabled
onDragActiveWindowEnabledChanged: checked = dragActiveWindowEnabled
onClicked: {
plasmoid.configuration.dragActiveWindowEnabled = !plasmoid.configuration.dragActiveWindowEnabled;
plasmoid.configuration.dragActiveWindowEnabled = checked;
}
}
}
@ -728,13 +727,16 @@ PlasmaComponents.Page {
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("Close Active Window")
checked: plasmoid.configuration.closeActiveWindowEnabled
checkable: true
tooltip: i18n("The user can use middle mouse button to close last active window from empty areas")
iconName: "window-close"
readonly property int closeActiveWindowEnabled: plasmoid.configuration.closeActiveWindowEnabled
onCloseActiveWindowEnabledChanged: checked = closeActiveWindowEnabled;
onClicked: {
plasmoid.configuration.closeActiveWindowEnabled = !plasmoid.configuration.closeActiveWindowEnabled;
plasmoid.configuration.closeActiveWindowEnabled = checked;
}
}
}

View File

@ -508,11 +508,6 @@ PlasmaComponents.Page {
readonly property int optionsWidth: dialog.optionsWidth
readonly property bool deprecatedOptionsAreHidden: true // @since 0.10.0
Connections{
target: indicatorsStackView/currentItem
onHeightChanged: console.log(indicatorsStackView.currentItem.height)
}
replaceEnter: Transition {
ParallelAnimation {
PropertyAnimation {