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 committed Jan 4, 2024
1 parent 18e84ab commit db9341f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qml/AppItemMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Loader {
property var appItem
property bool isFavoriteItem
property bool hideFavoriteMenu
property bool launcherVisible: LauncherController.visible

signal closed()

Expand Down Expand Up @@ -97,11 +98,17 @@ Loader {

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

onLauncherVisibleChanged: {
if (!launcherVisible) {
item.close()
}
}

asynchronous: true
sourceComponent: contextMenuComp

Expand Down

0 comments on commit db9341f

Please sign in to comment.