Skip to content

Commit

Permalink
update popup
Browse files Browse the repository at this point in the history
  • Loading branch information
CyAn84 committed Nov 3, 2024
1 parent 4088354 commit 6cfd50e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/ui/qml/Controls2/PopupType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cfd50e

Please sign in to comment.