Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions shell-launcher-applet/package/launcheritem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ AppletItem {
implicitWidth: useColumnLayout ? Panel.rootObject.dockSize : Panel.rootObject.dockItemMaxSize * 0.8
implicitHeight: useColumnLayout ? Panel.rootObject.dockItemMaxSize * 0.8 : Panel.rootObject.dockSize

function toggleLauncher() {
LauncherController.visible = !LauncherController.visible
toolTip.close()
}

Connections {
target: Panel.rootObject
function onDockCenterPartPosChanged()
Expand All @@ -38,6 +43,15 @@ AppletItem {
}
}

Connections {
target: Panel
function onLeftEdgeClicked(minOrder) {
if (launcher.dockOrder == minOrder) {
toggleLauncher()
}
}
}

property point itemPos: Qt.point(0, 0)
function updateItemPos()
{
Expand Down Expand Up @@ -372,8 +386,7 @@ AppletItem {
anchors.fill: parent
onClicked: function (mouse) {
if (mouse.button === Qt.LeftButton) {
LauncherController.visible = !LauncherController.visible
toolTip.close()
toggleLauncher()
}
}
}
Expand Down
Loading