As pointed on #ubuntu-desktop by kiwinote, the previous patch breaks the File menu.
Please see the attached patch for another approach, changing the behavior only on NavigationItem, making it aware of the current view.
As pointed on #ubuntu-desktop by kiwinote, the previous patch breaks the File menu.
Please see the attached patch for another approach, changing the behavior only on NavigationItem, making it aware of the current view.