[Deluge] #3299: gtkui - spin_share_ratio min clamps to 0.5, should be 0.0

9 views
Skip to first unread message

Deluge

unread,
Aug 30, 2019, 4:05:53 PM8/30/19
to delug...@googlegroups.com
#3299: gtkui - spin_share_ratio min clamps to 0.5, should be 0.0
----------------------------+--------------------
Reporter: yuri_sevatz | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: GTK UI
Version: master | Keywords:
----------------------------+--------------------
Just noticed a bug in '''deluge/ui/gtk3/glade/preferences_dialog.ui''':

'''spin_share_ratio''' cannot set values lower than 0.5:

Original:

{{{
<object class="GtkAdjustment" id="adjustment_share_ratio">
...
<property name="lower">0.5</property>
...
</object>
}}}

Should be:

{{{
<object class="GtkAdjustment" id="adjustment_share_ratio">
...
<property name="lower">0.0</property>
...
</object>
}}}

This seems to cause Deluge UI to drop Config change events lower than 0.5,
and clamps them above 0.5 (e.g. attempting to set to 0.0 minimum read in
console). gtk UI is capping these before transmitting --

{{{
* ConfigValueChanged: stop_seed_ratio: 0.5
}}}

Web UI on the other hand seems to have a less restrictive clamp, so
attempts to set to 0.0 are transmitted to deluged just fine:

{{{
* ConfigValueChanged: stop_seed_ratio: 0.0
}}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3299>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Aug 30, 2019, 4:32:50 PM8/30/19
to delug...@googlegroups.com
#3299: gtkui - spin_share_ratio min clamps to 0.5, should be 0.0
--------------------------+----------------------------
Reporter: yuri_sevatz | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: GTK UI | Version: master
Resolution: | Keywords:
--------------------------+----------------------------

Comment (by yuri_sevatz):

FYI: I found this bug in the 1.x codeline since Gentoo Linux is taking
forever to update :(

If you need anything more let me know!

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3299#comment:1>

Deluge

unread,
Jan 8, 2020, 5:01:50 PM1/8/20
to delug...@googlegroups.com
#3299: gtkui - spin_share_ratio min clamps to 0.5, should be 0.0
--------------------------+----------------------------
Reporter: yuri_sevatz | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: GTK UI | Version: master
Resolution: | Keywords:
--------------------------+----------------------------

Comment (by mhertz):

Yes, same in v2.x, and indeed a bug since everything else doesn't have a
set limit, i.e console, core.conf or webui. I use pretty much only
consoleui, and so if going into GTKUI just to check something quickly,
then when quiting GTKUI I have a changed stop_seed_ratio setting. We'll,
it only happens if opening preferences in GTKUI, but regardless, that is
what I usually do(to configure plugins or check a setting and such).

This is also not done in e.g qbittorrent etc.

I myself found and made the manual fix also posted here, which works in
deluge2 also. Thanks in advance.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3299#comment:2>

Deluge

unread,
Jan 25, 2021, 1:51:08 AM1/25/21
to delug...@googlegroups.com
#3299: gtkui - spin_share_ratio min clamps to 0.5, should be 0.0
--------------------------+----------------------------
Reporter: yuri_sevatz | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: GTK UI | Version: master
Resolution: | Keywords:
--------------------------+----------------------------

Comment (by yuri_sevatz):

PR opened here:

https://github.com/deluge-torrent/deluge/pull/297

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3299#comment:3>

Reply all
Reply to author
Forward
0 new messages