From 0620b4536a88d3b59b270dea445cecef9e12d59e Mon Sep 17 00:00:00 2001 From: Cyril Anisimov Date: Mon, 4 Nov 2024 00:11:01 +0100 Subject: [PATCH] update popup --- client/ui/qml/Controls2/PopupType.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/ui/qml/Controls2/PopupType.qml b/client/ui/qml/Controls2/PopupType.qml index 5f635593..d067fc12 100644 --- a/client/ui/qml/Controls2/PopupType.qml +++ b/client/ui/qml/Controls2/PopupType.qml @@ -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