macosx: Rework library navigation stack and fix bugs with navigation in the media source view
Since we no longer show the back/forward buttons in the video and audio library views, this MR removes most of the code handling navigation state saving between library views and instead focuses only on navigation within the media source views.
Additionally, this MR fixes bugs with the media source view not being correctly updated when pressing the nav buttons, and crashing when pressing the forward nav button.
With changes:
Screen_Recording_2023-02-10_at_00.15.50
Before changes:
Screen_Recording_2023-02-10_at_00.24.27
Signed-off-by: Claudio Cambra developer@claudiocambra.com