mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Adjust slider limits in GTK (#7251)
This commit is contained in:
@@ -403,8 +403,8 @@ void MakeDialog::Impl::updatePiecesLabel()
|
|||||||
|
|
||||||
void MakeDialog::Impl::configurePieceSizeScale(uint32_t piece_size)
|
void MakeDialog::Impl::configurePieceSizeScale(uint32_t piece_size)
|
||||||
{
|
{
|
||||||
// the below lower & upper bounds would allow piece size selection between approx 1KiB - 64MiB
|
// the below lower & upper bounds would allow piece size selection between approx 16KiB - 256MiB
|
||||||
auto adjustment = Gtk::Adjustment::create(log2(piece_size), 10, 26, 1.0, 1.0);
|
auto adjustment = Gtk::Adjustment::create(log2(piece_size), 14, 28, 1.0, 1.0);
|
||||||
piece_size_scale_->set_adjustment(adjustment);
|
piece_size_scale_->set_adjustment(adjustment);
|
||||||
piece_size_scale_->set_visible(true);
|
piece_size_scale_->set_visible(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user