fix screenshot picker showing up in screenshots

This commit is contained in:
Zacharias-Brohn
2026-03-09 13:05:45 +01:00
parent 1ee345f946
commit fb15c2421b
+17 -4
View File
@@ -141,7 +141,7 @@ MouseArea {
sy = ssy;
ex = x;
ey = y;
} else {
} else if (!saveTimer.running) {
checkClientRects(x, y);
}
}
@@ -154,7 +154,7 @@ MouseArea {
return;
if (root.loader.freeze) {
save();
saveTimer.start();
} else {
overlay.visible = border.visible = false;
screencopy.visible = false;
@@ -162,6 +162,16 @@ MouseArea {
}
}
Timer {
id: saveTimer
interval: 25
repeat: false
running: false
onTriggered: root.save()
}
SequentialAnimation {
id: closeAnim
@@ -217,9 +227,10 @@ MouseArea {
paintCursor: false
onHasContentChanged: {
if (hasContent && !root.loader.freeze) {
if (hasContent) {
overlay.visible = border.visible = true;
root.save();
if (!root.loader.freeze)
root.save();
}
}
}
@@ -233,6 +244,7 @@ MouseArea {
layer.enabled: true
opacity: 0.3
radius: root.realRounding
visible: false
layer.effect: MultiEffect {
maskEnabled: true
@@ -270,6 +282,7 @@ MouseArea {
implicitHeight: selectionRect.implicitHeight + root.realBorderWidth * 2
implicitWidth: selectionRect.implicitWidth + root.realBorderWidth * 2
radius: root.realRounding > 0 ? root.realRounding + root.realBorderWidth : 0
visible: false
x: selectionRect.x - root.realBorderWidth
y: selectionRect.y - root.realBorderWidth