1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

fix clipboard auto-focus on open

This commit is contained in:
bbedward
2025-08-13 10:40:16 -04:00
parent 4363776545
commit a1bd7aaa3f

View File

@@ -388,12 +388,12 @@ DankModal {
} }
Connections { Connections {
function onOpened() { function onVisibleChanged() {
searchField.forceActiveFocus() if (clipboardHistoryModal.visible) {
} Qt.callLater(function () {
searchField.forceActiveFocus()
function onDialogClosed() { })
searchField.clearFocus() }
} }
target: clipboardHistoryModal target: clipboardHistoryModal