Skip to content

Commit

Permalink
fix: menu do not auto hide when launcher invisible
Browse files Browse the repository at this point in the history
when launcher is invisible, close and desory menu created

log: as title
issue: linuxdeepin/developer-center#6716
  • Loading branch information
tsic404 authored and deepin-bot[bot] committed Jan 4, 2024
1 parent 18e84ab commit 19a4eb9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion qml/AppItemMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,16 @@ Loader {

onClosed: {
root.closed()
destroy()
root.destroy()
}
}
}

Connections {
target: LauncherController
onVisibleChanged: {
if (!LauncherController.launcherVisible) {
item.close()
}
}
}
Expand Down

0 comments on commit 19a4eb9

Please sign in to comment.