mirror of
https://github.com/transmission/transmission
synced 2024-12-21 15:22:37 +00:00
Adjust slider limits in GTK (#7251)
This commit is contained in:
parent
bb6c6dd4ed
commit
7ec57cfe88
1 changed files with 2 additions and 2 deletions
|
@ -403,8 +403,8 @@ void MakeDialog::Impl::updatePiecesLabel()
|
|||
|
||||
void MakeDialog::Impl::configurePieceSizeScale(uint32_t piece_size)
|
||||
{
|
||||
// the below lower & upper bounds would allow piece size selection between approx 1KiB - 64MiB
|
||||
auto adjustment = Gtk::Adjustment::create(log2(piece_size), 10, 26, 1.0, 1.0);
|
||||
// the below lower & upper bounds would allow piece size selection between approx 16KiB - 256MiB
|
||||
auto adjustment = Gtk::Adjustment::create(log2(piece_size), 14, 28, 1.0, 1.0);
|
||||
piece_size_scale_->set_adjustment(adjustment);
|
||||
piece_size_scale_->set_visible(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue