Avoid showing both menus when double clicking preferences in a box, close #34