Commit c8771519 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Make sure the closed signal is emitted upon close

Otherwise some events never happen, like the screenshot request.


(cherry picked from commit 4942e0e3)
parent a55ce684
......@@ -50,6 +50,9 @@ NanoShell.FullScreenOverlay {
Component.onCompleted: plasmoid.nativeInterface.panel = window;
onVisibleChanged: if (!visible) {
closed()
}
onInitiallyOpenedChanged: {
if (initiallyOpened) mainFlickable.focus = true;
}
......@@ -93,7 +96,6 @@ NanoShell.FullScreenOverlay {
if (window.offset <= 0) {
// close immediately, so that we don't have to wait units.longDuration
window.visible = false;
window.closed();
close();
} else if (window.direction === SlidingContainer.MovementDirection.None) {
if (window.offset < openThreshold) {
......
Markdown is supported
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