More Warning fixes

This commit is contained in:
Ly-sec 2025-08-21 15:55:38 +02:00
parent b3972fd862
commit aed728ec9c
2 changed files with 8 additions and 5 deletions

View file

@ -117,7 +117,7 @@ Loader {
sequences: ["Escape"]
enabled: root.active && !root.isClosing
onActivated: root.close()
context: Shortcut.WindowShortcut
context: Qt.WindowShortcut
}
// Clicking outside of the rectangle to close
@ -158,8 +158,6 @@ Loader {
Component.onCompleted: {
root.scaleValue = 1.0
root.opacityValue = 1.0
// Ensure the panel window becomes the active window so window-scoped shortcuts work (Esc)
Qt.callLater(() => panelWindow.forceActiveFocus())
}
// Prevent closing when clicking in the panel bg