Commit ec2f2429 authored by Nate Graham's avatar Nate Graham Committed by Fushan Wen
Browse files

applets/mediacontroller: fix two code errors

1. `undefined` is an invalid value for `Layout.Preferred[something]`; instead
   use -1 which is the correct thing.
2. `Layout.maximumLineCount` doesn't exist; use `Layout.maximumWidth` which was
   probably the intention.
parent f24ab588
Pipeline #231571 passed with stage
in 6 minutes and 15 seconds
......@@ -17,7 +17,7 @@ import org.kde.plasma.plasmoid 2.0
MouseArea {
id: compactRepresentation
Layout.preferredWidth: !inTray && !isVertical ? (iconLoader.active ? iconLoader.implicitWidth : playerRow.width) : undefined
Layout.preferredWidth: !inTray && !isVertical ? (iconLoader.active ? iconLoader.implicitWidth : playerRow.width) : -1
readonly property bool isVertical: Plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property bool inPanel: [PlasmaCore.Types.TopEdge, PlasmaCore.Types.RightEdge, PlasmaCore.Types.BottomEdge, PlasmaCore.Types.LeftEdge].includes(Plasmoid.location)
......@@ -131,7 +131,7 @@ MouseArea {
id: songArtist
Layout.fillHeight: true
Layout.maximumWidth: songTitle.Layout.maximumLineCount
Layout.maximumWidth: songTitle.Layout.maximumWidth
visible: root.artist
elide: Text.ElideRight
......
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