From 7ec57cfe88a28fba493bf6048dd8c6cf5a326abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Fri, 13 Dec 2024 00:05:10 +0100 Subject: [PATCH] Adjust slider limits in GTK (#7251) --- gtk/MakeDialog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/MakeDialog.cc b/gtk/MakeDialog.cc index 1d112a579..3d0aea21e 100644 --- a/gtk/MakeDialog.cc +++ b/gtk/MakeDialog.cc @@ -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); }