Commit 4f4faffe authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/taskmanager: use `tasks.vertical` in TaskList

A redundant variable is removed.
parent 9577fd5c
Pipeline #192784 passed with stage
in 4 minutes and 55 seconds
......@@ -11,9 +11,8 @@ Flow {
property bool animating: false
readonly property bool tasksGrowInOppositeDirection: plasmoid.configuration.reverseMode
readonly property bool isHorizontalPanel: plasmoid.formFactor === PlasmaCore.Types.Horizontal
layoutDirection: (tasksGrowInOppositeDirection && isHorizontalPanel)
layoutDirection: (tasksGrowInOppositeDirection && !tasks.vertical)
? (Qt.application.layoutDirection === Qt.LeftToRight)
? Qt.RightToLeft
: Qt.LeftToRight
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment