fix(App): close right menu if editor goes away

- if right menu is opened and its scope is destroyed by clicking on a file of a different type