Cleanup after #6449 (#6484)

* Better description in spinwidget
* Rename SpinWidget title from "Hold pan rate" -> "Text selection rate"
reviewable/pr6486/r1
Galunid 4 years ago committed by GitHub
parent 3b69ea690c
commit 55a5f0c1a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -444,7 +444,6 @@ function Gestures:addIntervals(menu_items)
end end
local items = SpinWidget:new{ local items = SpinWidget:new{
text = T(_([[ text = T(_([[
Used when selecting text.
The rate is how often screen will be refreshed per second while selecting text. The rate is how often screen will be refreshed per second while selecting text.
Higher values mean faster screen updates, but also use more CPU. Higher values mean faster screen updates, but also use more CPU.
Default value: %1]]), Screen.low_pan_rate and 5.0 or 30.0), Default value: %1]]), Screen.low_pan_rate and 5.0 or 30.0),
@ -455,7 +454,7 @@ Default value: %1]]), Screen.low_pan_rate and 5.0 or 30.0),
value_step = 1, value_step = 1,
value_hold_step = 15, value_hold_step = 15,
ok_text = _("Set rate"), ok_text = _("Set rate"),
title_text = _("Hold pan rate"), title_text = _("Text selection rate"),
default_value = Screen.low_pan_rate and 5.0 or 30.0, default_value = Screen.low_pan_rate and 5.0 or 30.0,
callback = function(spin) callback = function(spin)
G_reader_settings:saveSetting("hold_pan_rate", spin.value) G_reader_settings:saveSetting("hold_pan_rate", spin.value)

Loading…
Cancel
Save