diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-30 18:01:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-30 18:01:30 +0200 |
commit | e3375c309abbfc42baaedcc9ba7367e89314ab69 (patch) | |
tree | c1ec0ba902f481bb9fc71be02d91e848b2ed338d /gtk2_ardour/editor_routes.h | |
parent | ae38128f88270df6ad24a0aa167adfc248276509 (diff) |
suspend editor redisplay during batch changes
(major speed-up when changing all meters)
Diffstat (limited to 'gtk2_ardour/editor_routes.h')
-rw-r--r-- | gtk2_ardour/editor_routes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_routes.h b/gtk2_ardour/editor_routes.h index 8213e653ec..d0c32a8e8b 100644 --- a/gtk2_ardour/editor_routes.h +++ b/gtk2_ardour/editor_routes.h @@ -38,13 +38,18 @@ public: void move_selected_tracks (bool); void show_track_in_display (TimeAxisView &); + bool _redisplay_on_resume; + void suspend_redisplay () { + _redisplay_on_resume = false; _no_redisplay = true; } void resume_redisplay () { _no_redisplay = false; - redisplay (); + if (_redisplay_on_resume) { + redisplay (); + } } void redisplay (); |