Switch the native query panel on and of depending on the context selected.