function toggleMenu() { /* Toggle the state of the menu */ if (menuLoader.source == "") { menuLoader.source = "MenuList.qml"; menuTimer.running = true; ------->added } else { menuLoader.item.state = ""; menuTimer.running = true; } }
Timer { id: menuTimer interval: 600 --------> change to 3000 onTriggered: menuLoader.source = "" }