From 1c720129d1c924e014977d6878640324197965d7 Mon Sep 17 00:00:00 2001 From: Kugi Eusebio Date: Fri, 16 Apr 2021 22:49:19 +0800 Subject: [PATCH] Hide side stage when dragging is cancelled This will hide the side stage when the user do not complete a drag of an app from the main stage to the side stage. This only applies when the drag starts while side-stage is hidden. --- qml/Stage/Stage.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qml/Stage/Stage.qml b/qml/Stage/Stage.qml index 7ddc9966d4..21a30b5661 100644 --- a/qml/Stage/Stage.qml +++ b/qml/Stage/Stage.qml @@ -2200,6 +2200,12 @@ FocusScope { } } + onDropped: { + if (!priv.sideStageDelegate) { + sideStage.hide(); + } + } + Component { id: dragComponent SurfaceContainer {