Skip to content

Allow history between model types (continued)

Explanation

This MR changes the view stack behaviour so that when the user opens a new view, only that view is added to the stack. The stack is cleared and reset when they click on a sidebar item.

The current behaviour (before the MR) is to potentially open multiple views consecutively even when the user only clicks once. For example if the user clicks on the album title from the header bar, then Elisa will (1) clear the view stack, (2) open the albums grid view, and (3) open the album itself as a subview. The new behaviour is to only (1) open the album as a subview.

Reason for the change

This is a continuation of !452 (closed)

Test plan

Autotests for ViewManager have been updated. Also tested manually by clicking through various elements.

Screenshots or screen recordings

Before After
elisa-history-before-2023-06-09_18.03.24.mkv elisa-history-after-2023-06-09_18.04.15.mkv

Bugs fixed

BUG: 468212

Edited by Jack Hill

Merge request reports

Loading