Tie the "sticky scrolling" setting in with the settings mgmt
[pulseview.git] / pv / view / view.cpp
index 2bf3d20a4301413a8503aceb9b9d441698334474..d47b4fd15315d61fe33d46ab9d11087954702114 100644 (file)
@@ -567,11 +567,6 @@ void View::enable_sticky_scrolling(bool state)
        sticky_scrolling_ = state;
 }
 
-void View::toggle_sticky_scrolling()
-{
-       sticky_scrolling_ = !sticky_scrolling_;
-}
-
 void View::enable_coloured_bg(bool state)
 {
        const vector<shared_ptr<TraceTreeItem>> items(
@@ -676,7 +671,7 @@ void View::restack_all_trace_tree_items()
                o->restack_items();
 
        // Re-assign background colors
-       bool next_bgcolour_state = 0;
+       bool next_bgcolour_state = false;
 
        for (auto &o : sorted_owners)
                next_bgcolour_state = o->reassign_bgcolour_states(next_bgcolour_state);