From 6cfd50ef0b6e4cdb8e7ee566bd44f79d8e990236 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 04f46689c..ee68a07d4 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