13
0

Initialize fader's numeric entry adjustment

Previously the internal adjustment used for numeric entry
was left at 0 if the BarController's adjustment was never modified.
This commit is contained in:
Robin Gareus 2024-10-14 17:57:15 +02:00
parent fd8808d7b8
commit 63d3d1ff3d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -57,6 +57,8 @@ SliderController::SliderController (Gtk::Adjustment *adj, std::shared_ptr<PBD::C
_spin_adj.set_page_increment(_ctrl->interface_to_internal(adj->get_page_increment()) - _ctrl->lower ());
}
ctrl_adjusted ();
adj->signal_value_changed().connect (sigc::mem_fun(*this, &SliderController::ctrl_adjusted));
_spin_adj.signal_value_changed().connect (sigc::mem_fun(*this, &SliderController::spin_adjusted));