1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-21 23:32:35 +00:00

Adjust slider limits in GTK (#7251)

This commit is contained in:
Cœur 2024-12-13 00:05:10 +01:00 committed by GitHub
parent bb6c6dd4ed
commit 7ec57cfe88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
} }