Fix mixer-side-bar show/hide actions
authorRobin Gareus <robin@gareus.org>
Fri, 30 Aug 2019 20:56:07 +0000 (22:56 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 30 Aug 2019 20:57:57 +0000 (22:57 +0200)
Changes need to be propagated to the Stripable's PresentationInfo.
So far this was not done for batch-changes using the mixer's left
side-bar "Show all", "Hide all" actions. They remained local
to the mixer and were not persistent.

gtk2_ardour/mixer_ui.cc

index 5a1690cacd3f1585ba7096a787f2350f60497d29..de59ef2a6806d4f79538efd7d302565b4801008e 100644 (file)
@@ -1204,9 +1204,7 @@ Mixer_UI::update_track_visibility ()
                        (*i)[stripable_columns.visible] = av->marked_for_display ();
                }
 
-               /* force presentation catch up with visibility changes
-                */
-
+               /* force presentation to catch up with visibility changes */
                sync_presentation_info_from_treeview ();
        }
 
@@ -1299,12 +1297,14 @@ Mixer_UI::set_all_strips_visibility (bool yn)
 
                        (*i)[stripable_columns.visible] = yn;
                }
+
+               /* force presentation to catch up with visibility changes */
+               sync_presentation_info_from_treeview ();
        }
 
        redisplay_track_list ();
 }
 
-
 void
 Mixer_UI::set_all_audio_midi_visibility (int tracks, bool yn)
 {
@@ -1354,6 +1354,9 @@ Mixer_UI::set_all_audio_midi_visibility (int tracks, bool yn)
                                break;
                        }
                }
+
+               /* force presentation to catch up with visibility changes */
+               sync_presentation_info_from_treeview ();
        }
 
        redisplay_track_list ();