Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
clsty
2025-11-05 19:19:14 +08:00
4 changed files with 8 additions and 6 deletions
@@ -377,6 +377,7 @@ Singleton {
property bool showLabel: false property bool showLabel: false
property real opacity: 0.3 property real opacity: 0.3
property real contentRegionOpacity: 0.8 property real contentRegionOpacity: 0.8
property int selectionPadding: 5
} }
property JsonObject rect: JsonObject { property JsonObject rect: JsonObject {
property bool showAimLines: true property bool showAimLines: true
@@ -87,7 +87,7 @@ Scope {
} }
onExited: (exitCode, exitStatus) => { onExited: (exitCode, exitStatus) => {
if (exitCode !== 0) { if (exitCode !== 0) {
console.warn("fprintd-list command exited with error:", exitCode, exitStatus); // console.warn("[LockContext] fprintd-list command exited with error:", exitCode, exitStatus);
root.fingerprintsConfigured = false; root.fingerprintsConfigured = false;
} }
} }
@@ -121,10 +121,11 @@ PanelWindow {
return (root.targetedRegionX >= 0 && root.targetedRegionY >= 0) return (root.targetedRegionX >= 0 && root.targetedRegionY >= 0)
} }
function setRegionToTargeted() { function setRegionToTargeted() {
root.regionX = root.targetedRegionX; const padding = Config.options.regionSelector.targetRegions.selectionPadding; // Make borders not cut off n stuff
root.regionY = root.targetedRegionY; root.regionX = root.targetedRegionX - padding;
root.regionWidth = root.targetedRegionWidth; root.regionY = root.targetedRegionY - padding;
root.regionHeight = root.targetedRegionHeight; root.regionWidth = root.targetedRegionWidth + padding * 2;
root.regionHeight = root.targetedRegionHeight + padding * 2;
} }
function updateTargetedRegion(x, y) { function updateTargetedRegion(x, y) {
@@ -108,7 +108,7 @@ Singleton {
} }
} }
onExited: (exitCode, exitStatus) => { onExited: (exitCode, exitStatus) => {
console.log("[KeyringStorage] Keyring data fetch process exited with code:", exitCode); // console.log("[KeyringStorage] Keyring data fetch process exited with code:", exitCode);
if (exitCode === 1) { if (exitCode === 1) {
console.error("[KeyringStorage] Entry not found, initializing."); console.error("[KeyringStorage] Entry not found, initializing.");
root.keyringData = {}; root.keyringData = {};