Prevent game from unpausing when I press "ui_accept" during pause menu
I have the following code in my pause menu script to pause the game when the menu is displayed:
get_tree().paused = true
However, as I toggle between screens within the pause menu by using the "ui_accept" input, it unpauses the game in the background even while the menu is still showing. How do I not unpause the game with this input. I don't recall ever telling Godot, unless this is default behaviour. How can I fix/prevent this and unpause the game by my choosing?