Restores query_state and active_folder at completion