update popup

This commit is contained in:
Cyril Anisimov 2024-11-04 00:11:01 +01:00
parent d956be901d
commit 0620b4536a

View file

@ -47,8 +47,10 @@ Popup {
id: timer
interval: 400 // Milliseconds
onTriggered: {
FocusController.pushRootObject(root)
FocusController.setFocusItem(closeButton)
if (!GC.isMobile()) {
FocusController.setFocusItem(closeButton)
FocusController.pushRootObject(root)
}
}
repeat: false // Stop the timer after one trigger
running: !GC.isMobile() // Start the timer