mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Make sure the closed signal is emitted upon close
Otherwise some events never happen, like the screenshot request.
This commit is contained in:
parent
204207f2a9
commit
4942e0e369
1 changed files with 3 additions and 1 deletions
|
|
@ -50,6 +50,9 @@ NanoShell.FullScreenOverlay {
|
|||
|
||||
Component.onCompleted: plasmoid.nativeInterface.panel = window;
|
||||
|
||||
onVisibleChanged: if (!visible) {
|
||||
closed()
|
||||
}
|
||||
onInitiallyOpenedChanged: {
|
||||
if (initiallyOpened) mainFlickable.focus = true;
|
||||
}
|
||||
|
|
@ -98,7 +101,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue