Commit 818fcffe authored by Fushan Wen's avatar Fushan Wen
Browse files

applets/kickoff: fix crash when dragging items not in favorite page on Wayland

Replace all `!plasmoid.expanded` with `plasmoid.expanded` so the source
item can still be alive after Kickoff menu is closed

BUG: 449426
BUG: 450215
FIXED-IN: 5.26


(cherry picked from commit f74a31b8)
parent a651fb38
Pipeline #234482 canceled with stage
in 5 minutes and 46 seconds
......@@ -172,7 +172,7 @@ BasePage {
Connections {
target: plasmoid
function onExpandedChanged() {
if(!plasmoid.expanded) {
if (plasmoid.expanded) {
plasmoid.rootItem.contentArea.currentItem.forceActiveFocus()
}
}
......
......@@ -113,7 +113,7 @@ PlasmaExtras.PlasmoidHeading {
Connections {
target: plasmoid
function onExpandedChanged() {
if(!plasmoid.expanded) {
if (plasmoid.expanded) {
tabBar.currentIndex = 0
}
}
......
......@@ -177,7 +177,7 @@ PlasmaExtras.PlasmoidHeading {
Connections {
target: plasmoid
function onExpandedChanged() {
if(!plasmoid.expanded) {
if (plasmoid.expanded) {
searchField.clear()
}
}
......
......@@ -168,7 +168,7 @@ EmptyPage {
Connections {
target: plasmoid
function onExpandedChanged() {
if(!plasmoid.expanded) {
if (plasmoid.expanded) {
view.currentIndex = 0
view.positionViewAtBeginning()
}
......
......@@ -205,7 +205,7 @@ EmptyPage {
Connections {
target: plasmoid
function onExpandedChanged() {
if(!plasmoid.expanded) {
if (plasmoid.expanded) {
view.currentIndex = 0
view.positionViewAtBeginning()
}
......
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