Add option to remember last category or search when reopening the
menu (default to true, which was previous behavior).
Fix bug where categories would stay selected until passed over again.