tempo display: further simplifications to handling map changes

When a tempo map change originates from a drag, we know the required redraws have
already been done. Use a new bool member, ignore_map_change, to tell the Editor
to ignore the map change signal. For all other map changes, do the full reset.
This commit is contained in:
Paul Davis 2022-06-28 10:16:31 -06:00
parent 32a3bf229e
commit bf87916fb1
4 changed files with 24 additions and 26 deletions

View file

@ -388,6 +388,7 @@ Editor::Editor ()
, lock_dialog (0)
/* , last_event_time { 0, 0 } */ /* this initialization style requires C++11 */
, _dragging_playhead (false)
, ignore_map_change (false)
, _follow_playhead (true)
, _stationary_playhead (false)
, _maximised (false)