Make sure  onProjectOpenedOrClosed() to set active view as Octave scripts depend on active view
p4#: 22403