13
0

Restore rulers as saved with the session

This fixes an issue with the videotimeline not being shown
when reloading a session. Editor::set_state() restores the grid,
which in turn changes ruler visibility. This triggers
store_ruler_visibility() and the saved session state was lost.
This commit is contained in:
Robin Gareus 2022-03-07 05:47:27 +01:00
parent fbce2d73a8
commit 2cffca4c40
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1363,6 +1363,12 @@ Editor::set_session (Session *t)
refresh_location_display ();
/* restore rulers before calling set_state() which sets the grid,
* which changes rulers and calls store_ruler_visibility() overriding
* any settings saved with the session.
*/
restore_ruler_visibility ();
/* This must happen after refresh_location_display(), as (amongst other things) we restore
* the selected Marker; this needs the LocationMarker list to be available.
*/
@ -1414,7 +1420,6 @@ Editor::set_session (Session *t)
Config->map_parameters (pc);
_session->config.map_parameters (pc);
restore_ruler_visibility ();
//tempo_map_changed (PropertyChange (0));
TempoMap::Metrics metrics;
TempoMap::use()->get_metrics (metrics);